sourceSans3 static method

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

See:

Implementation

static TextStyle sourceSans3({
  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.w200,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      'bdff15c4f32e3af3a017af9918c28c33e2807d15500189c3b40fcbdeaeac033a',
      216140,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w300,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '9c9303dc9266d9386cc2e797038245e8b9c59603903f14edef7b8599401a3204',
      217108,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w400,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '3fdc76d00d6af6a42a733aa1d387deb78f3cd94a3b3e7f789471c89d11e2a143',
      217224,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w500,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '99ee5a2e4369c9464b1a906368720d09ec36bdd67426c2c36f6c2f9cc6fd289b',
      217012,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w600,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '51a415fe99cea06a8c95613d8dc941e1d4e6b9223ff4a87bf3c3110fd7a3f2d1',
      217188,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w700,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '154f0397ab45c3bcf6e161296ae7636734da0c659a4037465b259ee6a0f33cc6',
      217164,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w800,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '6091ab31640c41fc315a8bf03e7329bb4ed8181b2d172b4eb13e8aa77529c118',
      217168,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w900,
      fontStyle: FontStyle.normal,
    ): GoogleFontsFile(
      '6183be876f77855b863deafe4e7280f7c5a0bb78d4f931d3f367eb0bcaf7ba9b',
      216120,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w200,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '9c7e35c60c2974f0192ee762300256e8c7880f7fdfd45108ee0c71c31e9159f2',
      191824,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w300,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'e31258cb4146ed7d6d8339cbaf290f0f8bef8140a3c5206b7776c79e0fa2b581',
      192996,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w400,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '4bdb42635e13159623df963c61188c3f3038cc23608c5f78979110a509746e3a',
      192836,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w500,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '92753c1bcb1ddb0064ddd9602396836995fdad384bee44fbcf9b4ca67efeecd5',
      192656,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w600,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '6140e43a182f0bdcad79e90349bd267ec41cf5b418fa8836a0a0eed88d576343',
      192804,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w700,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'f2e207c885876164d5fbce2434da228085e8af654e1076cf0337ac0f5d81ea45',
      192824,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w800,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      'd89e692c4bc2042185ff7ad2f15cdf1881be3244c9c61d68a0f7ef8088b81973',
      192724,
    ),
    const GoogleFontsVariant(
      fontWeight: FontWeight.w900,
      fontStyle: FontStyle.italic,
    ): GoogleFontsFile(
      '636e7c8191e04fd3dba72bb43e27188850da84fb4836e5321a1d8b672cf23e88',
      191388,
    ),
  };

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