Flutter

Use HEX Colors In Flutter


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

//