libreBarcode128TextTheme method

TextTheme libreBarcode128TextTheme(
  1. [TextTheme textTheme]
)

Applies the Libre Barcode 128 font family from Google Fonts to every TextStyle in the given textTheme.

See:

Implementation

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