Text
The text Widget displays a text
The text widget is defined like this:
Text()
Options
The text widget have different options:
Text(
// set the text
"Text here",
// set max lines
maxLines: 2,
// set style
style: TextStyle(
// font size
fontSize: 35.0,
// font weight
fontWeight: FontWeight.w800,
// or
fontWeight: FontWeight.bold,
// set color
color: Colors.white,
)
)
Last updated