useTextTheme property

bool useTextTheme
final

Use a Material 3 like and inspired text theme.

When opting in on using the sub-theming, this flag controls if the text theme that uses Material 3 like font sizes and letter spacing, as specified for phones in the Material 3 Design Guide, is also used.

The text theme is defined in FlexColorScheme.m3TextTheme. When the actual M3 based text themes are defined in Flutter SDK stable release they will be used instead.

If you need to use none EnglishLike typography for you locale, then using this text theme might not be ideal. It only provides the EnglishLike geometry, not the dense and tall ones that some locales prefer or need. This limitation will be removed when the M3 geometry is supported in Flutter SDK. If this text theme causes issues with your locale or it otherwise does not suite your design, then set this to false.

FlexColorScheme fully supports using any custom TextTheme and fonts, just like ThemeData. That you apply and use just as you would with ThemeData. This text theme is just a custom predefined TextTheme.

Defaults to true.

Implementation

final bool useTextTheme;