Text and Color
https://docs.flutter.io/flutter/painting/TextStyle-class.html
Text Style Class
Text(
style: TextStyle(fontStyle: FontStyle.italic),
Text Style Class
Text(
style: TextStyle(fontStyle: FontStyle.italic),
),
Background Color
Add container and add color
child: new Container(
width: 80.0,
height: 80.0,
margin: new EdgeInsets.all(10.0),
color: Colors.orange,),
https://docs.flutter.io/flutter/dart-ui/Color-class.html
An immutable 32 bit color value in ARGB format.
Color c = const Color(0xFF42A5F5);
Color c = const Color.fromARGB(0xFF, 0x42, 0xA5, 0xF5);
Color c = const Color.fromARGB(255, 66, 165, 245);
Color c = const Color.fromRGBO(66, 165, 245, 1.0);
Color c1 = const Color(0xFFFFFF); // fully transparent white (invisible)
Color c2 = const Color(0xFFFFFFFF); // fully opaque white (visible)
https://docs.flutter.io/flutter/dart-ui/Color/Color.fromARGB.html
Construct a color from the lower 8 bits of four integers.
Comments
Post a Comment