overpass static method

TextStyle overpass({
  1. TextStyle? textStyle,
  2. Color? color,
  3. Color? backgroundColor,
  4. double? fontSize,
  5. FontWeight? fontWeight,
  6. FontStyle? fontStyle,
  7. double? letterSpacing,
  8. double? wordSpacing,
  9. TextBaseline? textBaseline,
  10. double? height,
  11. Locale? locale,
  12. Paint? foreground,
  13. Paint? background,
  14. List<Shadow>? shadows,
  15. List<FontFeature>? fontFeatures,
  16. TextDecoration? decoration,
  17. Color? decorationColor,
  18. TextDecorationStyle? decorationStyle,
  19. double? decorationThickness,
})

Applies the Overpass font family from Google Fonts to the given textStyle.

See:

Implementation

static TextStyle overpass({
  TextStyle? textStyle,
  Color? color,
  Color? backgroundColor,
  double? fontSize,
  FontWeight? fontWeight,
  FontStyle? fontStyle,
  double? letterSpacing,
  double? wordSpacing,
  TextBaseline? textBaseline,
  double? height,
  Locale? locale,
  Paint? foreground,
  Paint? background,
  List<ui.Shadow>? shadows,
  List<ui.FontFeature>? fontFeatures,
  TextDecoration? decoration,
  Color? decorationColor,
  TextDecorationStyle? decorationStyle,
  double? decorationThickness,
}) {
  final fonts = <GoogleFontsVariant, GoogleFontsFile>{
    const GoogleFontsVariant(
      fontWeight: FontWeight.w100,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '23a37992a9d85d0f9a1da6e8c23cf6e946989de3a2e2a238de919c0362559078',
      163536,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w200,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'e0e7a7fe37b43dedb8f17338ae827aa15df5266ea676993ab3ffca25df45415e',
      164300,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w300,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'bbd6f3627a9652068b498804d83c5f0a0fcb536add004dc1752ffb02289539cf',
      164276,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w400,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '92c3f424cc95481bb99d92b0e42d242be89b85876633ea600e43da95e7ced3a7',
      164096,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w500,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '5dc1883dfedb17a9ccd078ceaa0e2f14e19be06d515a4d543d963e38ef546613',
      164228,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w600,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '494d741c6ad1a170c53d71c6bcb936465fac08a74f7eeaa4cf124ac94f7cb36f',
      163916,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w700,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '9c793aefcaca62eac3bff54d3a52981a70a8937241ffd8d967273c42a8ca7933',
      164204,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w800,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '917b6c4f35eff72c414d9fe41fed349aef276f3646166aac9cf1f24e638fb556',
      163580,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w900,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '3e09f06ba27704fee501b880f0a8fc0d2c82b1db6db61e2ac0f69ef61bca9762',
      163508,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w100,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'f6762f0c2603c177207d0a5e2b019d43d0d219625d41575fd97950bd58b501cc',
      148024,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w200,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '9a783bf2a5946790f867c272a8c52570d9ccdb2868149201f5cc72a376e5b314',
      148148,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w300,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'ca665ae98f64c3ccf9ce94230a7fcdb02d489574737c230dd4dea4e4fd61adfe',
      148064,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w400,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '9a1a5cd1c0ceb6a36cad2b99d8210ade3e030c722bd78e7ffa12e4e6ff37cbdc',
      147796,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w500,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'b52aa7fcaf05eeaa9784af65f8c07153499f5623cfcbf33826a6ae65ce93bd41',
      147960,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w600,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '2012ec221daebe9581b0fd7ba2b79938074e9207d5d786ab2f0e6f3b5882c6c9',
      148040,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w700,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '2d6958c4f023d541fb5b4a6c6f0eab33c75c2d65b2ddb00acdec95bdc1f5f8b0',
      148044,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w800,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '4b95ccb5cafa1848a99f0707df4f177ad4001236d13c084f2a2711ba4f493097',
      148624,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w900,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'b791e3631dcd783b086655ca2a454ad26f23e8edced404ae3bdbd878140463ec',
      148616,
    ),
  };

  return googleFontsTextStyle(
    textStyle: textStyle,
    fontFamily: 'Overpass',
    color: color,
    backgroundColor: backgroundColor,
    fontSize: fontSize,
    fontWeight: fontWeight,
    fontStyle: fontStyle,
    letterSpacing: letterSpacing,
    wordSpacing: wordSpacing,
    textBaseline: textBaseline,
    height: height,
    locale: locale,
    foreground: foreground,
    background: background,
    shadows: shadows,
    fontFeatures: fontFeatures,
    decoration: decoration,
    decorationColor: decorationColor,
    decorationStyle: decorationStyle,
    decorationThickness: decorationThickness,
    fonts: fonts,
  );
}