sairaSemiCondensedTextTheme method

TextTheme sairaSemiCondensedTextTheme(
  1. [TextTheme textTheme]
)

Applies the Saira Semi Condensed font family from Google Fonts to every TextStyle in the given textTheme.

See:

Implementation

static TextTheme sairaSemiCondensedTextTheme([TextTheme textTheme]) {
  textTheme ??= ThemeData.light().textTheme;
  return TextTheme(
    headline1:
        GoogleFonts.sairaSemiCondensed(textStyle: textTheme?.headline1),
    headline2:
        GoogleFonts.sairaSemiCondensed(textStyle: textTheme?.headline2),
    headline3:
        GoogleFonts.sairaSemiCondensed(textStyle: textTheme?.headline3),
    headline4:
        GoogleFonts.sairaSemiCondensed(textStyle: textTheme?.headline4),
    headline5:
        GoogleFonts.sairaSemiCondensed(textStyle: textTheme?.headline5),
    headline6:
        GoogleFonts.sairaSemiCondensed(textStyle: textTheme?.headline6),
    subtitle1:
        GoogleFonts.sairaSemiCondensed(textStyle: textTheme?.subtitle1),
    subtitle2:
        GoogleFonts.sairaSemiCondensed(textStyle: textTheme?.subtitle2),
    bodyText1:
        GoogleFonts.sairaSemiCondensed(textStyle: textTheme?.bodyText1),
    bodyText2:
        GoogleFonts.sairaSemiCondensed(textStyle: textTheme?.bodyText2),
    caption: GoogleFonts.sairaSemiCondensed(textStyle: textTheme?.caption),
    button: GoogleFonts.sairaSemiCondensed(textStyle: textTheme?.button),
    overline: GoogleFonts.sairaSemiCondensed(textStyle: textTheme?.overline),
  );
}