codaCaptionTextTheme static method

TextTheme codaCaptionTextTheme(
  1. [TextTheme? textTheme]
)

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

See:

Implementation

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