glegooTextTheme static method

TextTheme glegooTextTheme(
  1. [TextTheme? textTheme]
)

Applies the Glegoo font family from Google Fonts to every TextStyle in the given textTheme.

See:

Implementation

static TextTheme glegooTextTheme([TextTheme? textTheme]) {
  textTheme ??= ThemeData.light().textTheme;
  return TextTheme(
    displayLarge: GoogleFonts.glegoo(textStyle: textTheme.displayLarge),
    displayMedium: GoogleFonts.glegoo(textStyle: textTheme.displayMedium),
    displaySmall: GoogleFonts.glegoo(textStyle: textTheme.displaySmall),
    headlineLarge: GoogleFonts.glegoo(textStyle: textTheme.headlineLarge),
    headlineMedium: GoogleFonts.glegoo(textStyle: textTheme.headlineMedium),
    headlineSmall: GoogleFonts.glegoo(textStyle: textTheme.headlineSmall),
    titleLarge: GoogleFonts.glegoo(textStyle: textTheme.titleLarge),
    titleMedium: GoogleFonts.glegoo(textStyle: textTheme.titleMedium),
    titleSmall: GoogleFonts.glegoo(textStyle: textTheme.titleSmall),
    bodyLarge: GoogleFonts.glegoo(textStyle: textTheme.bodyLarge),
    bodyMedium: GoogleFonts.glegoo(textStyle: textTheme.bodyMedium),
    bodySmall: GoogleFonts.glegoo(textStyle: textTheme.bodySmall),
    labelLarge: GoogleFonts.glegoo(textStyle: textTheme.labelLarge),
    labelMedium: GoogleFonts.glegoo(textStyle: textTheme.labelMedium),
    labelSmall: GoogleFonts.glegoo(textStyle: textTheme.labelSmall),
  );
}