comforterTextTheme static method

TextTheme comforterTextTheme(
  1. [TextTheme? textTheme]
)

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

See:

Implementation

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