pattayaTextTheme static method

TextTheme pattayaTextTheme(
  1. [TextTheme? textTheme]
)

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

See:

Implementation

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