firaSans static method

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

See:

Implementation

static TextStyle firaSans({
  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(
      'e9e6d0e7031414cc02a8f489a4ef20a97bbeb4bcece4628f486c26fc66bbaf34',
      233184,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w100,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '1ebee8fa26cf644731b51d7345ff0655f072761bc1dd4ec72af77702f12c7151',
      244752,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w200,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '0faffd159a124b7a78be16d6fabf18bcc92cf66acc8fb383964420629d6318b9',
      235812,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w200,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '76df9d6bb42a3a3ad4f9a09245dcce9baaa6fdffb4ac46d53cc4d4fc5702aebc',
      247172,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w300,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '59f9845a0de308c8c8c903efe9aa61436b92ca8c785953155ecc38352c66a7e4',
      235532,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w300,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'dde23f63b0bc2c46afc4dced5309772f2a0974112ab448a875bb88bf525843c2',
      246484,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w400,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '5dd03654251e007123ceef832aa3d637d1b5f96b9da17bff57994045c8d66636',
      235128,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w400,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'ac9ef8f1b75a8d216a876b8ca33eabaa1f32e329fa2bb828415f8aaa573b0a38',
      246032,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w500,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'e7238925f4b0dfd82e1adf74fee2846daef75ceb357407a04a1263ce00b6a998',
      235572,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w500,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '5293447fb413e9475aa5dbd026f393582cf5f1efd9183cbefd883913a3596cbb',
      246436,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w600,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '6ddd0dfd83e24bccd399998ffa2946effe0d54a845a738c541a9ef71dfd6667a',
      235484,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w600,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'f422e1190e96238b9e43baf1a0526dfb994035c1141044e9443a1fc2f5d09aa1',
      246652,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w700,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'da3db7d16fabc6ba08aa199158b1e786bdb30814404b1550d60ccfd47facc85b',
      235544,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w700,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '2d352a9a23f3a77b563eb6204fffcdac4553733ea8ae25960dbb1023cfc0b047',
      246368,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w800,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '1b6c4a27a5d0a92117245f8eadfa166d13f0b0fc3e52b5886b662a72d19564a3',
      235368,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w800,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '20aecf1d0ad920fdcab8bf2eae2d564194126de84a6f1add0c31f40cc5f9e578',
      245976,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w900,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '62413fc882afeda70aee38dc5007d9706629b3eefaabbcb3e335fd63b9b520a2',
      235104,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w900,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '43afba8b5f430c8ac534b02947fd64491b28629f0b7e5fe7c5f95c7b0175df64',
      246160,
    ),
  };

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