flutter set text color code example
Example 1: flutter text color
new Text(
'Welcome to Flutter Tutorial.',
style: TextStyle(
color: Colors.blue,
),
)
Example 2: italic text flutter
Text(
"Welcome to the present, we're running a real nation.",
style: TextStyle(fontStyle: FontStyle.italic),
)
Example 3: color textfield text flutter
TextField(
style: TextStyle(color: Colors.white),
...
)
Example 4: how to style text in flutter
Text(
'text'
style: TextStyle(),
),
Example 5: Flutter Html text color
Flutter Html Widget
Html(
data: 'my text',
style: {
"body": Style(
fontSize: FontSize(18.0),
fontWeight: FontWeight.bold,
),
},
)