flowBlockTextTheme static method
- [TextTheme? textTheme]
Applies the Flow Block font family from Google Fonts to every
TextStyle in the given textTheme
.
See:
Implementation
static TextTheme flowBlockTextTheme([TextTheme? textTheme]) {
textTheme ??= ThemeData.light().textTheme;
return TextTheme(
displayLarge: GoogleFonts.flowBlock(textStyle: textTheme.displayLarge),
displayMedium: GoogleFonts.flowBlock(textStyle: textTheme.displayMedium),
displaySmall: GoogleFonts.flowBlock(textStyle: textTheme.displaySmall),
headlineLarge: GoogleFonts.flowBlock(textStyle: textTheme.headlineLarge),
headlineMedium:
GoogleFonts.flowBlock(textStyle: textTheme.headlineMedium),
headlineSmall: GoogleFonts.flowBlock(textStyle: textTheme.headlineSmall),
titleLarge: GoogleFonts.flowBlock(textStyle: textTheme.titleLarge),
titleMedium: GoogleFonts.flowBlock(textStyle: textTheme.titleMedium),
titleSmall: GoogleFonts.flowBlock(textStyle: textTheme.titleSmall),
bodyLarge: GoogleFonts.flowBlock(textStyle: textTheme.bodyLarge),
bodyMedium: GoogleFonts.flowBlock(textStyle: textTheme.bodyMedium),
bodySmall: GoogleFonts.flowBlock(textStyle: textTheme.bodySmall),
labelLarge: GoogleFonts.flowBlock(textStyle: textTheme.labelLarge),
labelMedium: GoogleFonts.flowBlock(textStyle: textTheme.labelMedium),
labelSmall: GoogleFonts.flowBlock(textStyle: textTheme.labelSmall),
);
}