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