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