butterflyKidsTextTheme static method

TextTheme butterflyKidsTextTheme(
  1. [TextTheme? textTheme]
)

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

See:

Implementation

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