murechoTextTheme static method

TextTheme murechoTextTheme([
  1. TextTheme? textTheme
])

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

See:

Implementation

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