questrialTextTheme static method

TextTheme questrialTextTheme([
  1. TextTheme? textTheme
])

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

See:

Implementation

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