rock3dTextTheme static method

TextTheme rock3dTextTheme([
  1. TextTheme? textTheme
])

Applies the Rock 3D font family from Google Fonts to every TextStyle in the given textTheme.

See:

Implementation

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