flutter custom color code example
Example 1: flutter how to add opacity to color
backgroundColor: Colors.black.withOpacity(0.5)
Example 2: 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 3: how to give shade to the colors in flutter
ThemeData(primarySwatch: Colors.lime.shade700),