flutter material colors 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: how to give shade to the colors in flutter
ThemeData(primarySwatch: Colors.lime.shade700),