{"id":2443,"date":"2024-10-16T15:06:04","date_gmt":"2024-10-16T06:06:04","guid":{"rendered":"http:\/\/idealive.jp\/blog\/?p=2443"},"modified":"2024-10-16T18:33:06","modified_gmt":"2024-10-16T09:33:06","slug":"%e3%80%90flutter%e3%80%91mycolor%e3%82%92%e5%ae%9a%e7%be%a9%e3%81%97%e3%81%a6%e7%8b%ac%e8%87%aa%e3%81%ae%e3%82%ab%e3%83%a9%e3%83%bc%e3%82%92%e4%b8%8a%e6%89%8b%e3%81%ab%e5%88%a9%e7%94%a8%e3%81%97","status":"publish","type":"post","link":"https:\/\/idealive.jp\/blog\/2024\/10\/16\/%e3%80%90flutter%e3%80%91mycolor%e3%82%92%e5%ae%9a%e7%be%a9%e3%81%97%e3%81%a6%e7%8b%ac%e8%87%aa%e3%81%ae%e3%82%ab%e3%83%a9%e3%83%bc%e3%82%92%e4%b8%8a%e6%89%8b%e3%81%ab%e5%88%a9%e7%94%a8%e3%81%97\/","title":{"rendered":"\u3010Flutter\u3011MyColor\u3092\u5b9a\u7fa9\u3057\u3066\u72ec\u81ea\u306e\u30ab\u30e9\u30fc\u3092\u4e0a\u624b\u306b\u5229\u7528\u3057\u3088\u3046\uff01"},"content":{"rendered":"\n<p>\u3053\u3093\u306b\u3061\u306f\u3001\u30a4\u30c7\u30a2\u30e9\u30a4\u30d6 FrontEndTeam \u306e\u5cf6\u91ce\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u958b\u767a\u306e\u969b\u306b\u4f7f\u7528\u3059\u308bcolor\u3067\u72ec\u81ea\u306e\u30ab\u30e9\u30fc\u3092\u5229\u7528\u3057\u305f\u3044\u969b\u306b\u5f79\u7acb\u3064MyColor\u306b\u3064\u3044\u3066\u3001\u7d39\u4ecb\u3057\u307e\u3059\uff01<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<h2 class=\"wp-block-heading\">Color\u5b9a\u7fa9<\/h2>\n<\/blockquote>\n\n\n\n<p>\u4e0b\u8a18\u306e\u3088\u3046\u306a\u5f62\u3067\u30a2\u30d7\u30ea\u3067\u4f7f\u7528\u3059\u308b\u30ab\u30e9\u30fc\u3092\u307e\u3068\u3081\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u3061\u3089\u306b\u95a2\u3057\u3066\u306f\u65b0\u898f\u3067colors.dart\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001\u4f7f\u3044\u305f\u3044\u30ab\u30e9\u30fc\u3092\u8a18\u8ff0\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import 'dart:ui';\n\nclass MyColor {\n  \/\/ \u5fc5\u8981\u306b\u5fdc\u3058\u3066\u4ed6\u306e\u30ab\u30e9\u30fc\u3082\u8ffd\u52a0\u3059\u308b\n  static const Color darkgreen = Color(0xFF012B28);\n  static const Color darkYellow = Color(0xFFEBB42C);\n  static const Color black = Color(0xFF000000);\n}<\/code><\/pre>\n\n\n\n<p>\uff0a\u30d5\u30a1\u30a4\u30eb\u3084\u30af\u30e9\u30b9\u540d\u306b\u95a2\u3057\u3066\u306f\u72ec\u81ea\u306e\u3082\u306e\u3067\u69cb\u3044\u307e\u305b\u3093\u3002\u307e\u305f\u3001\u30af\u30e9\u30b9\u540d\u306b\u306f\u30a2\u30c3\u30d1\u30fc\u30ad\u30e3\u30e1\u30eb\u30b1\u30fc\u30b9\u3092\u5229\u7528\u3057\u307e\u3057\u3087\u3046\uff01<\/p>\n\n\n\n<p>\u30ab\u30e9\u30fc\u306b\u95a2\u3057\u3066\u3067\u3059\u304c\u3001Flutter\u306e\u5834\u5408Hex\u5024\u3092\u305d\u306e\u307e\u307e\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u305d\u3053\u3067\u30010xFF \uff0b Hex\u5024\u306e\u5f62\u5f0f\u3067\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u3067\u3001\u8868\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>static const Color darkgreen = Color(0xFF012B28);<\/code><\/pre>\n\n\n\n<p>\u3053\u306e\u3088\u3046\u306b\u3001Color\u30bf\u30a4\u30d7\u3000\u30ab\u30e9\u30fc\u540d\u3000= Color(0xFF \uff0b Hex\u5024)\u3000\u3067\u30ab\u30e9\u30fc\u3092\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<h2 class=\"wp-block-heading\">UI\u5074\u3067\u306e\u5229\u7528\u65b9\u6cd5<\/h2>\n<\/blockquote>\n\n\n\n<p>\u305d\u308c\u3067\u306f\u5b9f\u969b\u306b\u4f7f\u3063\u3066\u3044\u304d\u307e\u3059\uff01\u5148\u307b\u3069\u5b9a\u7fa9\u3057\u305f\u3053\u3068\u3067\u3001<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> TextButton(\n     child: Text(\n        '\u65b0\u898f\u767b\u9332\u306f\u3053\u3061\u3089',\n         style: AppTextstyle.bold(\n             fontSize: 12, color: MyColor.darkYellow),\n      ),\n      onPressed: () {\n        context.pushNamed(RouteNames.signInPage);\n        },\n      ),<\/code><\/pre>\n\n\n\n<p>\u4e0a\u8a18\u306eAppTextstyle\u306e\u5f15\u6570color\u3067\u3001\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5229\u7528\u3059\u308b\u969b\u306b\u306f\u3001MyColor. + \u5b9a\u7fa9\u3057\u305fColor \u3067\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u3088\u3046\u306b\u72ec\u81ea\u306e\u30ab\u30e9\u30fc\u3092\u30af\u30e9\u30b9\u3067\u7ba1\u7406\u3057\u3066\u304a\u304f\u3053\u3068\u3067\u3001\u30b3\u30fc\u30c9\u304c\u30b9\u30c3\u30ad\u30ea\u3068\u3057\u305f\u5370\u8c61\u306b\u306a\u308a\u3001<\/p>\n\n\n\n<p>\u30ab\u30e9\u30fc\u306e\u4e00\u62ec\u5909\u66f4\u3092\u884c\u3046\u969b\u306b\u3082darkYellow\u306e\u30ab\u30e9\u30fc\u306eHex\u5024\u3092\u5909\u66f4\u3059\u308b\u3060\u3051\u3067\u6e08\u3080\u305f\u3081\u3068\u3066\u3082\u304a\u3059\u3059\u3081\u306e\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n\n\n\n\n\n\n\n\n\n\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u30a4\u30c7\u30a2\u30e9\u30a4\u30d6 FrontEndTeam \u306e\u5cf6\u91ce\u3067\u3059\u3002 \u958b\u767a\u306e\u969b\u306b\u4f7f\u7528\u3059\u308bcolor\u3067\u72ec\u81ea\u306e\u30ab\u30e9\u30fc\u3092\u5229\u7528\u3057\u305f\u3044\u969b\u306b\u5f79\u7acb\u3064MyColor\u306b\u3064\u3044\u3066\u3001\u7d39\u4ecb\u3057\u307e\u3059\uff01 Color\u5b9a\u7fa9 \u4e0b\u8a18\u306e\u3088\u3046\u306a\u5f62\u3067\u30a2\u30d7\u30ea\u3067\u4f7f\u7528\u3059\u308b\u30ab\u30e9&#8230;<a class=\"read-more-link button\" href=\"https:\/\/idealive.jp\/blog\/2024\/10\/16\/%e3%80%90flutter%e3%80%91mycolor%e3%82%92%e5%ae%9a%e7%be%a9%e3%81%97%e3%81%a6%e7%8b%ac%e8%87%aa%e3%81%ae%e3%82%ab%e3%83%a9%e3%83%bc%e3%82%92%e4%b8%8a%e6%89%8b%e3%81%ab%e5%88%a9%e7%94%a8%e3%81%97\/\">\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":16,"featured_media":2183,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,74,21,3],"tags":[79,75,76,78,77,40,37,41],"class_list":["post-2443","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dart","category-flutter","category-tips","category-3","tag-color","tag-dart","tag-mycolor","tag-78","tag-77","tag-android","tag-flutter","tag-ios"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/idealive.jp\/blog\/wp-json\/wp\/v2\/posts\/2443"}],"collection":[{"href":"https:\/\/idealive.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/idealive.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/idealive.jp\/blog\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/idealive.jp\/blog\/wp-json\/wp\/v2\/comments?post=2443"}],"version-history":[{"count":16,"href":"https:\/\/idealive.jp\/blog\/wp-json\/wp\/v2\/posts\/2443\/revisions"}],"predecessor-version":[{"id":2509,"href":"https:\/\/idealive.jp\/blog\/wp-json\/wp\/v2\/posts\/2443\/revisions\/2509"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/idealive.jp\/blog\/wp-json\/wp\/v2\/media\/2183"}],"wp:attachment":[{"href":"https:\/\/idealive.jp\/blog\/wp-json\/wp\/v2\/media?parent=2443"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/idealive.jp\/blog\/wp-json\/wp\/v2\/categories?post=2443"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/idealive.jp\/blog\/wp-json\/wp\/v2\/tags?post=2443"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}