crimsonPro static method
TextStyle
crimsonPro({
- 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 Crimson Pro font family from Google Fonts to the
given textStyle
.
See:
Implementation
static TextStyle crimsonPro({
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(
'29270124752488cc47f7cdb94438d4e64613c5b33e20109c0e5b9f40c5727443',
98492,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'91c48e8cf235f1a0b332337b9f7715329929219b7e9de205bd4a71c74ef12294',
98560,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'61b16e4d278b2524da9095b06b68eac69eefc558765136c73187fc58fa5e7752',
98500,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'6ca5d7f20ff7653e2a9bbef143ecc1fb5780fb404ec79687938e5489d0c32183',
98608,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'9ce9488921eff721bb4d09e02127f0530b5e156419e687937c322913ad80a31a',
98660,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'c19c95d4428fd000a09e670c1a5c98f3c72630f83902f8b0aaccc75cc36c6c05',
98540,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'8fb4101e92ab8547217e34678a28589d20d1f70261a560e4b9d96c73bd0fb6c9',
98644,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w900,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'392926ca5cdb42a9664c3360554d4541ae18353b8ccbe6d82514c4f675e5736b',
98644,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w200,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'56462ec4e7166ea968cf5b2f846e3b3b0a4f980f7d048812e8720b0536994b78',
100556,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'f17c5e9f329adaf313a15552de66ed5789b6ad39288fd1cba802ba0529f1a79d',
100524,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'1fa946f8d19f34114bbc079f6ca283235947a87cc87795cb8eb6c81052366d4d',
100328,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'1eee3fbc94dd344ec1b1baff811519dc0444b7778ab24ce884997747d21ac265',
100400,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'98bc5fe72d34b02e4dbdb437ff3cd6c027adfee5d90d974b8fec4e384d04ce8a',
100372,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'3838d725b7026b287e0932afda45421973a5d8bb32ba7a5a9eccfeb153cb4368',
100316,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'846053a847b3226553551e341efde1bb898d240e3f0f2ea319c29659a0703c59',
100524,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w900,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'e674e45b00901b8ff502e01bbc98e7ec6a8a2d4926abce27d31c41316fcfb891',
100552,
),
};
return googleFontsTextStyle(
textStyle: textStyle,
fontFamily: 'CrimsonPro',
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,
);
}