Text and Color

https://docs.flutter.io/flutter/painting/TextStyle-class.html

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.
  • a is the alpha value, with 0 being transparent and 255 being fully opaque.
  • r is red, from 0 to 255.
  • g is green, from 0 to 255.
  • b is blue, from 0 to 255.

Comments

Popular posts from this blog

Flutter Widget 101 Part 1 (Basic of Flutters, Layouts, Rows and Columns)

Flutter Widget 101 Part 2 (List and Stack)

Animation Class: AppBar and Tabbar