waitingForTheSunriseTextTheme static method

TextTheme waitingForTheSunriseTextTheme(
  1. [TextTheme? textTheme]
)

Applies the Waiting for the Sunrise font family from Google Fonts to every TextStyle in the given textTheme.

See:

Implementation

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