Use HEX Colors In Flutter
Posted on: March 04, 2021 by Jatin Hemnani
In this article, you will learn How To Use HEX Colors In Flutter.
Use HEX Color
backgroundColor: Color(0xffff6b81),
As the Color() function takes int value as a parameter, we can use HEX Code by adding 0xff before the HEX and by removing the # (hash). And in this way, you can use HEX colors in Flutter. You can also store the color value in a variable.
Result
Share on social media
//