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