Answers for "use color code in flutter"

15

how to use hexadecimal color in flutter

Color myColor = Color(0xff123456) 

// where 123456 is your hex color code and
// 0xff is the opacity value and can be changed.
Posted by: Guest on May-14-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
1

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 .
Posted by: Guest on October-27-2020
0

flutter color

AnimatedContainer(
          width: MediaQuery.of(context).size.width, 
          alignment: Alignment.bottomCenter,
          height: MediaQuery.of(context).size.height,
          duration: Duration(milliseconds: 100),
          padding: EdgeInsets.fromLTRB(15, 10, 15, 5),
          color: Colors.blue, 						//change to any preset color(ctrl + space)
         
        ),
Posted by: Guest on October-25-2021

Code answers related to "use color code in flutter"

Code answers related to "Dart"

Browse Popular Code Answers by Language