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