sourceCodePro static method
TextStyle
sourceCodePro({
- 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 Code Pro font family from Google Fonts to the
given textStyle
.
See:
Implementation
static TextStyle sourceCodePro({
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(
'05f59f5c748d021e190ee2753c205abb87ca31150c9052f553a664a0a250aaab',
107756,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'cf46db75a74858bb1a4b176bb58f243ac5f8290fefc4f5ab025e7ca67b8999ce',
108124,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'707a7a3e4834319cb336de8bf31596c15e0bf934b3dd476890acca09ebeb296d',
107988,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'cbc3f94e6978402fc470ba0d34f949334173e2b193d96ec50a205608e10d846d',
107792,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'6f1b615a04feed6b0694261faffcf950c5600e08175e79378896d56f82cbf6fe',
107788,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'2cf2806a8062feedbf6c8f46b5d51d6f010440986561b9cb227392831701fd7a',
107840,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'455177ae6bdae06f39951250f92e3165126d1382617c62050bae1d1afa789131',
107868,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w900,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'fb4f00d0f3143212c17e496146f92b8f8a109a5d6ec6ec02f88d88652a0d55e0',
107376,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w200,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'a1c8b8540eb49dabc63072b993c03b66bd004004e7fb98f76e924fc7c57de8fc',
91228,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'5dd74e16422fe86f9644a4e8c76c4458136e8d93477941e6b443cff0c90b1f00',
91536,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'14992160f530695762f0d913b0c5d2990bda7ec3ead99fd6f5fd288ad8911de6',
91348,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'046418149c3315eeb5d908cfab8f0d1a8d6c98d70870860656ce887e11c78a42',
91316,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'868b20b8d202bb70db94e8ef8c3a83dd81d75b5b1526066e93dd73b6327f9de1',
91312,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'f287dca15e1b909b886a5ae5c2acc8d827682aca7cfd40a51a9ebf5625dcac5d',
91296,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'561e1a65422a47617490f50dd6eca2083222ee9a1ef5af840d09178874083abe',
91364,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w900,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'877e3c46187cfbe945e26de3745ef918c755ed5f0bc71ec00616d54c15e23040',
91056,
),
};
return googleFontsTextStyle(
textStyle: textStyle,
fontFamily: 'SourceCodePro',
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,
);
}