deliusUnicaseTextTheme method

TextTheme deliusUnicaseTextTheme(
  1. [TextTheme textTheme]
)

Applies the Delius Unicase font family from Google Fonts to every TextStyle in the given textTheme.

See:

Implementation

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