saira static method
- {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 Saira font family from Google Fonts to the
given textStyle
.
See:
Implementation
static TextStyle saira({
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(
'52c137265ce0f71c3c6a6fac2ef1403f72189e84575392934e646bb91825d1f7',
70184,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w200,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'08184bf7dfc54923c869a10da2aeafc76f840ec2a8e940153f8fd5e44ed09c93',
70156,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'a8bba172ab0d020726b03c5c7d2846decef8aea8799bde197a2306672d623ce1',
70032,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'd9457083cfb2e33c370f46269b03a03ba2cc36bfaf5d28d680dc822e7202254e',
70276,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'02c606dcd2d224dd110b74d6fdde1361039dfc0c703a144f1d82da5ab2a13882',
70328,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'427f450c115c242f9741de791e30e71e40f70a20b859ca424cb30d4d150ec7d9',
70176,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'53f81a11177315ba57c1b317a1b921bf760c3677fd91ce4c33a75198a598b9b9',
70052,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'8ff241609757341b158dd66e2564e296e246e4147e9e1cd55e08d93eb5381976',
70208,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w900,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'794df5671333c9d259995336c821f67523c4b12cb7c4207122ec43388828e11b',
70036,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w100,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'67d8acd2d944d18dc7bb61164be51184eef48d99860abc440dc6f88945fec103',
73668,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w200,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'e6b3e508b90dba886abda16460d721380a0c9dbc0ccafbc6eefd0fb6438a66d1',
73848,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'a88663fee48367352489dfa9829f8bbd4d7ae20f00dd83aa40cc7540ad52227b',
73752,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'aeb7c9ccf87621cb38b92c154c2b7146c52206c8a6312abc60882ee79b8d78ca',
73792,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'2ad2de8122639c8b5428adedef8796d49284453d051ecc0b8ca39c81be0d8c55',
73868,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'50ee75efe75cf664482378caef477d3e423cb1188bb5c6c66aa62812d79e2144',
73804,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'943a9d29bcdd374b8242097b254e9d471b6cb5e79d38109a482bf08dfae48327',
73640,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'7b8dc05056f69c005469b8658e79aeb7a0a11a3ad2b0d757b75f2b95518893f0',
73632,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w900,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'df29b44072c7a364beee6daec08d6590e25330043161cd95a6667927b84e2efd',
73364,
),
};
return googleFontsTextStyle(
textStyle: textStyle,
fontFamily: 'Saira',
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,
);
}