Colors with color code in flutter code example
Example 1: color() in flutter
// Color() widget can be used in the following way:
//where 123456 is the hex color code without the '#'
Color myHexColor = Color(0xff123456)
Example 2: flutter hex color
Color myHexColor = Color(0xff123456)
// her you notice I use the 0xff and that is opacity or transparency of the color
// and you can also change these value .