spectral static method
TextStyle
spectral({
- 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 Spectral font family from Google Fonts to the
given textStyle
.
See:
Implementation
static TextStyle spectral({
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(
'38faebd2b01ddd2e497f09028eb10210de56ffadde5c5842c2f70a195865e869',
199076,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w200,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'3ee03dc791594673ce8b752c95ef9d29d66d2afb3777a862edd4e9886ceff42a',
220088,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'877b7e52c3c9951be21132edc23e99f7b227c3cf6a6189a349ea4195a5ca645d',
227408,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'3fceb0d465d8e2d6c3b28408281c75b8a55b5228875d262f65cafbf9f89aa1b5',
240880,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'cf0966737e7520da7784b9dfadc8744a34d7d90ab9d90ee290f28a8b29b868ea',
221072,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'9ba9b61cb4417f86b861d19cadc70e612a8e32596f88e9eaf7f65a33ac37e363',
230908,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'91b2985ae69deaca521a82b390a544247f735dfd48b0338fa92a1ab42a0a6414',
233368,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'47041fa850a2c3190804212d1ffe2e590aef6306201b9cff1c6bc798da3ea255',
241960,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'04a313e8c2f5ac831e7298c25c6075b9660a810569519797c226baede971cda1',
233468,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'85a9ddd0720f69c9da803991658683f387f75a2d200989f17e4c84f03353a73f',
241720,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'49302f1176eef815c75aec07833e13b9758532914b49c1993e9b619638ebcfd8',
233260,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'8f82f95515722a631616d0b69effe11da9717cf7eea641359596c20dbe87a7ca',
242076,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'8a965c3cce6911f473a1523ad68029f95071a6aaabe726bf72ff4f9ed5455f0e',
221968,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'528018df6d31607eec08ae87cd710edd29678dd7b9a2946b21fe5c2f725d95e5',
230424,
),
};
return googleFontsTextStyle(
textStyle: textStyle,
fontFamily: 'Spectral',
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,
);
}