hachiMaruPopTextTheme static method

TextTheme hachiMaruPopTextTheme([
  1. TextTheme? textTheme
])

Applies the Hachi Maru Pop font family from Google Fonts to every TextStyle in the given textTheme.

See:

Implementation

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