flutter text style heading code example
Example 1: how to use theme style and textstyle together in flutter text widget
Theme.of(context)
.textTheme.display1
.merge(TextStyle(color: Colors.red)
Example 2: how to style text in flutter
Text(
'text'
style: TextStyle(),
),