How do I use hexadecimal color strings in Flutter?

creativecreatorormaybenot picture creativecreatorormaybenot · Apr 28, 2018 · Viewed 199k times · Source

How do I convert a hexadecimal color string like #b74093 to a Color in Flutter?

I want to use a HEX color code in Dart.

Answer

creativecreatorormaybenot picture creativecreatorormaybenot · Apr 28, 2018

In Flutter the Color class only accepts integers as parameters