hanaleiFillTextTheme static method

TextTheme hanaleiFillTextTheme(
  1. [TextTheme? textTheme]
)

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

See:

Implementation

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