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