titilliumWeb 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 Titillium Web font family from Google Fonts to the
given textStyle
.
See:
Implementation
static TextStyle titilliumWeb({
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(
'66fcc18bb0eed2a11b259d4b563301f5304f6a4a33212b12297784f76da716b4',
53388,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w200,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'cc466f513e5942757bb8b8dd68a85cc1187bea91b71e348745039bde3138f94b',
57408,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'90b92cf2b88bd8a39a354c6de10a23b69fd0d9ffc6948a7fdfb5bc30b25be7e0',
54196,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'2809d7a2139916867089a91e03178d3f2064f5666d3cee743b65bc7507620b1b',
60640,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'82e1e5dc2e10e02cf451358b8979b49da6648646407c7df2c77319c5bb23535f',
53956,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'4a373e84f0f61333fc2f9b881fe8afed4fdb496b2653e5772eb273509dde4570',
61348,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'c43fe9e52fdd252279f52156429f1924d344076634e3b924ec835e046f90a7d7',
53224,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'acc13d4a166f449f3e72fb3f2566cacc3d64f74ba147a49c93b8f8cc301facbf',
60880,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'5e97ca3e2e4bee48dafb653d0a983c978573f21fe9f231f805716632539b0267',
51392,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'fa12f4c6e2e9a2341b01779259eedc153b79dbecd7bfd7969d1a3419248365b9',
59216,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w900,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'35ae1c36fea4e51c627d38747c43f4abb864f1f3a4d6fb431b98eb1d10b23ca0',
41708,
),
};
return googleFontsTextStyle(
textStyle: textStyle,
fontFamily: 'TitilliumWeb',
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,
);
}