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