primaryTextTheme property

TextTheme? primaryTextTheme
final

A text theme that contrasts with the primary color.

If a default TextTheme from package GoogleFonts is passed. FlexColorScheme will detect this and make the color in the passed in GoogleFonts null for all its TextStyles so that the correct color for M2/M3 mode and contrast for primary color is used.

Implementation

final TextTheme? primaryTextTheme;