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