truculentaTextTheme static method

TextTheme truculentaTextTheme([
  1. TextTheme? textTheme
])

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

See:

Implementation

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