encodeSans static method
TextStyle
encodeSans({
- 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 Encode Sans font family from Google Fonts to the
given textStyle
.
See:
Implementation
static TextStyle encodeSans({
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(
'66fbd9cd38e62f66436104619e5673ce128fc22d865f858bd22fc408c55cf109',
79344,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w200,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'ce043203a55b2476d8637803eba537c9728c79e305083676f630bc21f6ff2457',
79760,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'fbf3241b62d3d4d2abb5d04cf538fca4d0ff7628ec7f2fee2ab7ee1fd6a205f6',
79864,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'54748ddc5f3abcc7f8106468c511cffcacb7bcd45286bb3464a6890d3a5c0431',
79888,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'315f1bef3a1389876c7ac2666c529c82b2889bd3670f327266247459feb452df',
79960,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'36b31cb3da1c524949a9088b1ed96659bf646c20bf01d4471dd3030c283bea85',
80068,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'229ebe550f069fce430886ad01b5d01d34618f65861d57368f858d534f29527b',
80316,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'ec69280c6256e283fde49242ff61b7f77edab04f2170c2ee20652febf18a6ee6',
80564,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w900,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'68e63b0ca520c5c5c7085791b2b584fc1ac57c8203fcd79d4f0b83670dd08857',
80236,
),
};
return googleFontsTextStyle(
textStyle: textStyle,
fontFamily: 'EncodeSans',
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,
);
}