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