When I'm using (Colors.amberAccent) in Flutter framework, the color square appears automatically. How can I show it in Android studio beside Lines number if I'm using Color.fromARGB(255, 100, 100, 23)?
The second question is, can I use this color style (#ff0000) in Flutter framework?
I've put an image to clear my idea.colors
Andrii Turkovskyi :
String color = '#ff0000';\nString hex = color.replaceAll(\"#\", \"\");\nColor col = Color(int.parse(hex, radix: 16)).withOpacity(1.0);\n\n\nP.S. Or, you can use this",
2018-11-09T08:51:56
Muldec :
To answer your first question: It is not possible to display the color in the IDE when you use something else that Colors.colorName.\n\nFor your second question: you can use the style you described with this syntax Color(0xff5600). That will return a Color object instance \n\nreturn new MaterialApp(\n title: appTitle,\n theme: new ThemeData(\n primarySwatch: : Color(0xff5600),\n ),\n home: ...\n);\n",
2018-11-09T08:58:05