change color of text in flutter 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: how to style text in flutter

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

Tags:

Dart Example