cairoPlay static method
TextStyle
cairoPlay({
- 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 Cairo Play font family from Google Fonts to the
given textStyle
.
See:
Implementation
static TextStyle cairoPlay({
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(
'd1ae7d10b11839bb5ec92ae204f813e84fa34e83ad2909de022588dfeae7f957',
351492,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'159e88d832f509279d0b3c6a62d47a892dacb2578e0b9e61e144e50357d5b39e',
351532,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'0e4c4994c5be214bd343a59d8d229bd667fa1d709e741e08b1c8d37af80557f3',
351500,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'c5f932a3817010886f8adedfa5c6a9cda8a4a6fc4d316f1506e2f300dd880586',
351716,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'6cec1c37df21bb262504bc590cc8df184cddb30b153be18fce9740c80da92f43',
351760,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'db68c60e56636d0024fc08d73763fcfa33efe4ce0a8ef17d72dbd332c106bd09',
351608,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'7cf0ab6ce568f97cd5a62bbe62cb6e37b1505fbdcfeca173332aa6f6ee32afcc',
351708,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w900,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'af135fa7a639a94e7bc124f23f9a503b4d8d1389397ebe30bce68b8748b57ca4',
351676,
),
};
return googleFontsTextStyle(
textStyle: textStyle,
fontFamily: 'CairoPlay',
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,
);
}