ranchersTextTheme method
- [TextTheme textTheme]
Applies the Ranchers font family from Google Fonts to every
TextStyle in the given textTheme
.
See:
Implementation
static TextTheme ranchersTextTheme([TextTheme textTheme]) {
textTheme ??= ThemeData.light().textTheme;
return TextTheme(
headline1: GoogleFonts.ranchers(textStyle: textTheme?.headline1),
headline2: GoogleFonts.ranchers(textStyle: textTheme?.headline2),
headline3: GoogleFonts.ranchers(textStyle: textTheme?.headline3),
headline4: GoogleFonts.ranchers(textStyle: textTheme?.headline4),
headline5: GoogleFonts.ranchers(textStyle: textTheme?.headline5),
headline6: GoogleFonts.ranchers(textStyle: textTheme?.headline6),
subtitle1: GoogleFonts.ranchers(textStyle: textTheme?.subtitle1),
subtitle2: GoogleFonts.ranchers(textStyle: textTheme?.subtitle2),
bodyText1: GoogleFonts.ranchers(textStyle: textTheme?.bodyText1),
bodyText2: GoogleFonts.ranchers(textStyle: textTheme?.bodyText2),
caption: GoogleFonts.ranchers(textStyle: textTheme?.caption),
button: GoogleFonts.ranchers(textStyle: textTheme?.button),
overline: GoogleFonts.ranchers(textStyle: textTheme?.overline),
);
}