sourceSerifPro static method
TextStyle
sourceSerifPro({
- 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 Source Serif Pro font family from Google Fonts to the
given textStyle
.
See:
Implementation
static TextStyle sourceSerifPro({
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(
'66e47842a72b1e64bbf7124d20bec63dac313bffb330d56c02b12de10a5a95e8',
157208,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w200,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'89a673f760676ed19a36bf3af56184b8cfa20dbab087a6a153515d0d28237340',
155136,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'7ad250d6aa644fbbd6876cefbf10903719b8d262c6636e0e7affafb51b51e546',
160012,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'ab348fb9b7867f6383a566b7eb9b6ca0bcd15eeb3a399b46ffd396834ee26e17',
158084,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'1dffc2be5e0dc2051d1f2e8be8573d22760a5f7163909f43ed4a573cfc266ae4',
159488,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'749f40a652585f62308a52a6e73d8ccd4b07f17e5d6b383632f52010b2ea58cf',
156532,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'e72f9df69a91b8f1ee9b8c60a1a5a1f5d55f4f01a79a10320d355800f85da08c',
160352,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'66271135b5aaa32dcc0bc19da869ac76ad67dd6ce2f6825adf66140875637215',
159096,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'f560930f5b8c8b3523d63165b2282565a8dbec8fb020bb1ba512ca37a165b505',
160392,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'2df6157bc9f75ec1eef0767ae9cd67022a245db0759f8c6dd1e5491df7fbc65f',
159044,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w900,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'ee7aebb202643eb4d52fce6a5fbfa29cb0ae27f6509e62cbbdb228a95f9a19d6',
160644,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w900,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'72a6401d7fd17f763fd2cb8a1e306a8e678284c567ab8950a3873cd1e1ec97f0',
156152,
),
};
return googleFontsTextStyle(
textStyle: textStyle,
fontFamily: 'SourceSerifPro',
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,
);
}