workSans static method
TextStyle
workSans({
- 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<
Shadow> ? shadows, - List<
FontFeature> ? fontFeatures, - TextDecoration? decoration,
- Color? decorationColor,
- TextDecorationStyle? decorationStyle,
- double? decorationThickness,
Applies the Work Sans font family from Google Fonts to the
given textStyle
.
See:
Implementation
static TextStyle workSans({
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(
'37079e04152639cef8cba99d3277186c34857967fe1d395e9ebff45493d1368d',
116724,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w200,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'85e9d1fa1e9448b64d7ca982e4c3fcad8de9ee5c272647be948a65e07bfcd00e',
117084,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'2349ed935cbf0b40d2067894e370b5b131d5a92f015880461f0cfd60879cc3a0',
117072,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'65ea7ec7adcd4befab6c55ab49a0152060dcb6ecf92f964803e84e5831d6ae79',
116940,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'30f4b6b174b55d561a181bc8b854dd774522dba69d255d1ee87472faf89958ab',
117220,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'c6ea22e122a85951c3704a1a65bf41e4d8afe1388a814da5eef4e8c0ab11b911',
117272,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'7cc4fe8b5b4897e9c3eb04c5fa9e28fe08e392b105586847c14d0d2849b730a4',
117208,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'e286bc966a67c5796874300e1262b52a5b63902903cb34ad0090a364b46ab48c',
117280,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w900,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'a635f7db08205b9d0155704587a39f605d65fd07780308b52ed118fe23738712',
116908,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w100,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'685bf1a267fba40f96aec378b8fe2202c311a61fa3bb14e730a3cbf7aa0d074e',
111332,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w200,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'c226bf5f46605187bcc912e1c10b2136224de59ae2e42a590db276745b1cd3a6',
111576,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'2cac4157238eac8498f5084bd934e8e397734d386da01c4d06b0ef6ed1589876',
111512,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'a928320f9b7bb07f07f33b913c72889440ae1ad4203bded02c00287dbd3f43af',
111208,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'91521a667f2e14b9013c9feff32bf9faeb43c2f97495b5f96244d096f4e6578e',
111728,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'd9640942816d4f871733197b73fbbcad61954930198ad9263956536140f206cb',
111736,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'3d710d766a20ff6347809af69de4a3d282e753eb726c1e7eebcb88c4b926271d',
111636,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'f13afa081a04e63a8c90b3e2cb85e2a173c2f269823dcc5037d622bd016a46cd',
111724,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w900,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'd624ec5fd210ed32b726d215205ff40d2efce279c6935a0c772ed414b48e37bb',
111576,
),
};
return googleFontsTextStyle(
textStyle: textStyle,
fontFamily: 'WorkSans',
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,
);
}