Answers for "flutter use color code to Colors"

2

flutter how to add opacity to color

backgroundColor: Colors.black.withOpacity(0.5)
Posted by: Guest on May-05-2020
4

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)
Posted by: Guest on May-14-2020

Browse Popular Code Answers by Language