Just starting out with Flutter + Material design. I notice that when a create a theme using ThemeData, if I use something like this:
ThemeData(
textTheme: TextTheme(bodyText1: TextStyle(color: Colors.white)),
)
It doesn't seem to colour the text in a simple GridView with Text widgets with the colour white. However, if I change the above to use bodyText2
it does.
What is the logic behind bodyText2
being used for text across the app? Is there a good place to reference which text style names get used and why in a theming situation? Is this all just knowledge acquired through trial-and-error or are there some good catch-all rules for which styles get used in which circumstances?
Thanks.