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