spaceMonoTextTheme static method
Applies the Space Mono font family from Google Fonts to every
TextStyle in the given textTheme
.
See:
Implementation
static TextTheme spaceMonoTextTheme([TextTheme? textTheme]) {
textTheme ??= ThemeData.light().textTheme;
return TextTheme(
displayLarge: GoogleFonts.spaceMono(textStyle: textTheme.displayLarge),
displayMedium: GoogleFonts.spaceMono(textStyle: textTheme.displayMedium),
displaySmall: GoogleFonts.spaceMono(textStyle: textTheme.displaySmall),
headlineLarge: GoogleFonts.spaceMono(textStyle: textTheme.headlineLarge),
headlineMedium:
GoogleFonts.spaceMono(textStyle: textTheme.headlineMedium),
headlineSmall: GoogleFonts.spaceMono(textStyle: textTheme.headlineSmall),
titleLarge: GoogleFonts.spaceMono(textStyle: textTheme.titleLarge),
titleMedium: GoogleFonts.spaceMono(textStyle: textTheme.titleMedium),
titleSmall: GoogleFonts.spaceMono(textStyle: textTheme.titleSmall),
bodyLarge: GoogleFonts.spaceMono(textStyle: textTheme.bodyLarge),
bodyMedium: GoogleFonts.spaceMono(textStyle: textTheme.bodyMedium),
bodySmall: GoogleFonts.spaceMono(textStyle: textTheme.bodySmall),
labelLarge: GoogleFonts.spaceMono(textStyle: textTheme.labelLarge),
labelMedium: GoogleFonts.spaceMono(textStyle: textTheme.labelMedium),
labelSmall: GoogleFonts.spaceMono(textStyle: textTheme.labelSmall),
);
}