asapCondensed static method Null safety
- {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 Asap Condensed font family from Google Fonts to the
given textStyle
.
See:
Implementation
static TextStyle asapCondensed({
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(
'cff41cb2fe9e2f1e7cf4686f8b4174675210afed246067a63eaa8131472154dc',
70008,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w200,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'73ba0e68e7409bf170f35d1b9b2d472b471771e780a6dda6a164b51ae2709945',
76424,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'2a67660e18d33305f1b614ea83d4b4c1ef9d8f1e7ea532a91e998fe60c886058',
70168,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'77a3bb28081243365088daaa795208e27d24b80ff5f1d42535e07355efe01951',
76860,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'287d23bd152264f0e69499ace18ef73101ceb4c2f205f444061487c46113605a',
71444,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'8ed7f52e14e1c0ada801e7c04634272113f5db4dff1eab4b0a3f4c8ce8b88eb9',
77800,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'74f34fcf38b816a8a8c6646f674d5ffd574a4653954959cc070cfb4b23104085',
71636,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'3e637e88750b51d2078163a2e01f839644d2f20f233491057de61b46e0432690',
77676,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'150379b430c0f101463f7e470f721a6dec852c68f49027a20bb9aa53135f1b81',
72064,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'de948503fe3ce2a16bc1abbd41c556d04fa2bd6cf634c1bb241038a0fc21bd43',
77944,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'9a5854e1b13826ca480b8d3c50241514095b6421f5f093d59be25ccf932c5843',
72116,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'7c30dbc2e30259376d066e96f8488f483b4d34e7aebe280b2ef970d20679d5cc',
78364,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'ec93946f086d6d75040b54cfa627f1fde7d15d2cbe64f89a797b30c5a933fe01',
72284,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'95f2c5aeec797312bedae15f0ed45f22035d5e427aa6a0a9069f6cbb31b64fb6',
77896,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w900,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'b0ceef37e9be39e015a2b83e7e49114db4bfc2f00a6e1b2efbc4ca39780f6490',
72504,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w900,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'4d96e9ff4f289ecefc1de6bc57bfe7b6a5d3d8c27283ca482462078da2ae4022',
78436,
),
};
return googleFontsTextStyle(
textStyle: textStyle,
fontFamily: 'AsapCondensed',
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,
);
}