balthazarTextTheme static method

TextTheme balthazarTextTheme(
  1. [TextTheme? textTheme]
)

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

See:

Implementation

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