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