How to convert a hexadecimal color string like #b74093
to a Color
in Flutter
2 min readSep 13, 2021
In Flutter the Color
class only accepts integers as parameters, or there is the possibility to use the named constructors fromARGB
and fromRGBO
.
So we only need to convert the string #b74093
to an integer value. Also we need to…