January 2020
Intermediate to advanced
368 pages
12h 45m
English
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,
),
),
// ...
Read now
Unlock full access