asap 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 font family from Google Fonts to the
given textStyle
.
See:
Implementation
static TextStyle asap({
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.w100,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'8fccb0ee85a7742d98908cc83e2aa19ba81ea4c25657757944df0ac1eaae98c6',
77220,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w200,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'31e4bd467607dbd1d5ef80146a91bf0febbf7294ae6679ff600df1b25de7e3b9',
77304,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'e1fbec51cce53295fd5274652d8d2251dd72a2cc96263ff9da3240b943711a1d',
77284,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'b197130508d6c7f7b8db1f061138f34cf228877c66a40dcc34622006324a02ca',
77240,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'1a865d024a894c304f2c820ff664972e4129ecc318dca67b7c1e2fa014473e2f',
77240,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'22491ca0a499063225d0cd77bade261dfbd8653737ab7089319059c88f42a241',
77328,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'05dc46469b1decac35e426cf2ab3b6b0179c08dfc53dd61e5c156a5f2569fd0c',
77044,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'fb8e5542f11956c6cddccb3e82c9179820dc3b8a0f7fdd940196a498d31050ae',
77216,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w900,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'a68490602bf01bc8e0a3c7277686c6bb8154d9bc54631143df3d483a9d8436aa',
77100,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w100,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'37178735b8bd328ef23076e6bb94f77a2d637ec6ff935905fcf9a91db571c7fc',
84476,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w200,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'fc9060619a84da4583e3328cc778f25dc7a636c5bfafa0700a965b2af47e7e4a',
84468,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'3a48a72fc2f98776afdc3ea7e5f891f93f8f5900aa5b68a60b340f4a2b0691af',
84396,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'b92844300351246b171f1f78eac59e99bbea5e15379c3844e91ca57d71d356e6',
84304,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'76ce4de9e0ecaaffe129cfa5c22b40ea0228992edaecdb42a96a7f2d02045ec0',
84396,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'5bc68a75cb402dab5838d52394e13ee50ae3e47569dcd6cc785ec757f971862a',
84448,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'9ce190dee7f495773da96d8d79958c68ae84d753b4a2127cc9896e6d500d73ef',
84256,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'9a784dc7d197e79cf3f5bb2a833d9428bdb5c3fcf8a582a0a34f34d51b678365',
84388,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w900,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'0658c93a7f0a20fc5a6d0efeac631f5033eff17ffee1d7fb1235b02eb8d7995b',
84360,
),
};
return googleFontsTextStyle(
textStyle: textStyle,
fontFamily: 'Asap',
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,
);
}