flutter text color code example

Example 1: text fieldform color flutter

TextField(
  style: TextStyle(color: Colors.red),
  decoration: InputDecoration(fillColor: Colors.orange, filled: true),
)

Example 2: flutter font bold

Text(
  'Some text',
  style: TextStyle(
    fontSize: 24,
    fontWeight: FontWeight.bold),
)

Example 3: flutter text color

new Text(
  'Welcome to Flutter Tutorial.',
  style: TextStyle(
    color: Colors.blue,
  ),
)

Example 4: color textfield text flutter

TextField(
  style: TextStyle(color: Colors.white),
  ...
)

Example 5: flutter textfield label color

labelStyle: TextStyle(
	color: Colors.white,
)

Example 6: how to style text in flutter

Text(
'text'
style: TextStyle(),
),