I've seen some posts recommending to set fontSize
or TextStyle
for Text
widget using Theme
// textStyle
Theme.of(context).textTheme.bodySmall
OR
// fontSize
Theme.of(context).textTheme.bodySmall.fontSize
What benefit will I get by setting these parameters using Theme.of(context)
at runtime, when I can simply declare font sizes as constants?