C.5. Manipulating text style

You change text via a TextStyle widget. This widget can be given as an argument to Text widgets, and it’ll allow you to set things like fontSize, fontWeight, and fontFamily and color. Here’s an example:

// TextStyle example
Text(
  "Lorem ipsum",
  style: TextStyle(
    color: Colors.white,
    fontSize: 24.0,
    fontWeight: FontWeight.w900,
    letterSpacing: 4.0,
  ),
),
// ...
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.137.160.131