- Flutter Widget Livebook

DefaultTextStyle

The text style to apply to descendant Text widgets without explicit style.

Example

DefaultTextStyle(
  style: TextStyle(
    fontSize: 60,
    color: Colors.blue,
    fontWeight: FontWeight.bold,
  ),
  child: Text('Flutter'),
)

Related Links

  1. Example
  2. Related Links