sourceSansPro 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 Source Sans Pro font family from Google Fonts to the
given textStyle
.
See:
Implementation
static TextStyle sourceSansPro({
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(
'0268f93022d372f0837563cead28b34b006fa17c11de25a83ff80577772bbf44',
166564,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w200,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'7b4e2d81e9773f359cab7d801bfacadc13a51c0f99f342e1911b360325d744ab',
96856,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'27671c31d69c69c6d60289267df5c4ba68b327e590bc7d269d31ba1173462573',
167276,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'acd5848b6c71a90b0fd0c694a36d7d6f7272a1fbfdd8e1c3e02012e81b058862',
97500,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'48f8cf1609a77a2e6e5ff6670089d9c8b921f65a73ad75b8250e5ed6390ed328',
167952,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'fdde95a58b2c76abb0e21a2cb4b06c18d97aebb1ddd23ddd691a29da7108e3d6',
96968,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'918213748bccf07ee3b20ed95cc824bb329b9b048732700e32c241bba63a029b',
167636,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'6f11c0c46c3a578f8098b39c8ce70e15cfad941e4691eb79e0dc2f75436f673f',
96708,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'bab549066b369608c9bfbc6e7ad5b3519371d968dcbb8c7ab6f0e11bc6c199ab',
167524,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'd4386fbdccbc8128bec3c58677ac74595e3d7ecd34453cf3952c0800aff8f001',
96680,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w900,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'e46de402f539c1b8b6b566d3c90ded7a044a36bde9097ea36d330870bf401487',
167004,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w900,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'4cd4520183a06b006f1f911f0c30f64a4f7f51ecf03464aa5ac2338a29d029bb',
95872,
),
};
return googleFontsTextStyle(
textStyle: textStyle,
fontFamily: 'SourceSansPro',
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,
);
}