urbanist static method

TextStyle urbanist({
  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 Urbanist font family from Google Fonts to the given textStyle.

See:

Implementation

static TextStyle urbanist({
  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(
      '7c8b5523e863c9ad0378ee9d9efbe0b1454d19b71a9d0927606547713bbaf4f7',
      40912,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w200,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '1bda822d62fbe3d7a01f152e6a787f1b012b26a93545474a112fac926b7ac724',
      41136,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w300,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '3759301bd16bd2d0dffaa3872836afa7fe4fc7bfd6f8f62beff33179afb412b5',
      41104,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w400,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '60a6bb966556e2ca0d5defc47b03a5bd6aaeca7761eeb6ec7dfb8a20a9902da3',
      41036,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w500,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'a9cbb82165b0fc4b65b6197d27920e10d613dacfe008341c64808ec9eb2d6a3b',
      41092,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w600,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'e2c0f1ed4ddeea134b23d4183dceeee943f1b9e4fc1ec94c602ff7dc2b4e2ece',
      41072,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w700,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '756f2e175ef8611272c9f707ddb02cf379626addc357ed8aed07177cc9ba0a2a',
      40932,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w800,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '6f84d605bc2f02645026cc5cdda17923120f437213eb519f75be3bf6e099d3d3',
      41220,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w900,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'fa89be56596054d5f214936680fd39c3eeaa5b2ccc7722d151283adeec148ac0',
      41088,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w100,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '158b28da34da42a87bc7030e18df5cc5222471f5fbf9d9fc1dfe545bf2f1cdc8',
      41880,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w200,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '2062cf8cdf45dc2dc107c48538ea6a4fbfab175683e8c2086d5732a8b0d4cf5e',
      42144,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w300,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '4f0b1ea004f54809cad4f2a8740efa6e4c8cdcf2e4d2b144395e9fc38db6d0f8',
      42072,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w400,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '5e1b9ea201d0c47d4f914aee49b2cb40f6443b17a644b9a3881336351f4cc55a',
      41996,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w500,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '0286f5c9f58479a3ac3a397303ec9c70aa0a4ad64a56ef60fb97a82b19115f66',
      42100,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w600,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'f1908cc39a7022062641abcc8807ac7af31d41a0d54a0247b610910bab4a0698',
      42108,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w700,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '6f85494071d54a2cd0ff69024a4e13739ee9618be474d1b5864cee22d6e0553e',
      41888,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w800,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'a5b7db7e2a5d4d7897296057148e6a5c81e9be1a1bcb79f4ebb64d986d3033f0',
      42212,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w900,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '68542d174b3125e4116b5588197c30dc3d5968207e4d56ab9c06da6800170916',
      42068,
    ),
  };

  return googleFontsTextStyle(
    textStyle: textStyle,
    fontFamily: 'Urbanist',
    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,
  );
}