typography property

Typography? typography
final

The color and geometry TextTheme values used to configure ThemeData.textTheme, ThemeData.primaryTextTheme and ThemeData.accentTextTheme.

Used default value deviates from the Flutter standard, that uses the old Typography.material2014. Here we use the newer Typography.material2018 as default typography if one is not provided.

Never mix different Typography in light and dark theme mode. If you do, lerping between dark and light theme mode will fail due Flutter SDK not being able to handle the use case. If you use a default light or dark Flutter ThemeData() and a FlexColorScheme.toTheme() ThemeData for the other one, you must set either the default ThemeData to Typography.material2018 OR the FlexColorScheme.typography to Typography.material2014 to avoid this issue. It is not generally recommended to create you light and dark theme mode data with different methods. If you use FlexColorScheme, DO use it for both the light and dark theme mode.

Implementation

final Typography? typography;