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