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