montserrat static method

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

See:

Implementation

static TextStyle montserrat({
  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(
      'b0936b4c619894517a175e9d39c806f68f1d798fd0e21a664d910a931c9b9b95',
      109348,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w200,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '1f9c7a410fb464db7aa02db4b39421862816b0c7bca223c17e1f2135c22cdd93',
      109612,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w300,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'ee8b5c97e3aa531980e9e5ca3562802e8c07544aeb17c12a06f8cdb9d5179ac9',
      109752,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w400,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'e4eea029f6656e06623aedb1efd40156e46accd69ac3b28b5bbe493cae85597a',
      109684,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w500,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '9a55389a5de4ebae24c0d3944c284adb967833da97995e971396fa62f0e77ce6',
      109760,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w600,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'f9623fa8e2821eaf6172173573358a90fccd6ff0a16e1417a0ac77e46460e0d4',
      109884,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w700,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'c2c22f2ca7575faa51d69cd3cfa5c5f09f344b2e5d847f8392aa50618a361f0c',
      109756,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w800,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'd26aa3700dfd167b803312a2c6116ed9ede8e0a4f086f4b32c6a0de9166f4fd7',
      109808,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w900,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '1c53bcf3cb6b8ae2d44a60edfcf1a8b432e62aed4f068039fe378d23c2bad6c4',
      109616,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w100,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '938add2f2ee870858a114fef04417f844e3def1602b1aedbbff457c365687339',
      110148,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w200,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '12d76b7d07b33214994c95c52d8f4df0a43128ed1d8350633bdde8673676e2fc',
      110508,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w300,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'a4cac5bfaf6837b168035c63ecd29b5a7e17edb753260a3f1967eaca9dc95366',
      110524,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w400,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '26c9ec47c1d04875baa44cc06b8d120aaa73e2208bd8e2f63bc22d80a461e004',
      110464,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w500,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '08d0f76c954424b66763c05da0a0c669d1d37799875fb7d6c9862439d0a2d60e',
      110584,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w600,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '22753870c42a22b21a69fc024ab2f5a060edd00378846a9bfa909fef703d0ce6',
      110672,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w700,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '1b1669c13570408709cef9375949ca463aff7fcb75e79fdd3a3bf944d2fba85c',
      110604,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w800,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'e2b2c26ef87ee264c243ef36a1c637f808f8909b19e8e1a0bed5bab8f007e6c8',
      110580,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w900,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'f9b3644f03c5fc303642aa3f9468eb9b3c7dd49856925547ad5639e965b50aeb',
      110464,
    ),
  };

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