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