exo2 static method
TextStyle
exo2({
- 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 Exo 2 font family from Google Fonts to the
given textStyle
.
See:
Implementation
static TextStyle exo2({
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(
'bbe689b853dc18cdbb7029b96098328f89d4680fa66fc3912e16ef5d0e8cf2be',
126328,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w200,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'07bbb3b58eea237af54f4074d0544aed31bb82e27044094ba5be335ccd4148a3',
126576,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'04d95a6eea0f47e7aff4dcb44745be07b65c6a67714876b0c99d785d6a14e96a',
126608,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'a82f3d0895dad7ef3ad0e9b544c4ff61dece449615c2920a816696f746433ee4',
126600,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'bc7d6535d26443db8527c4f79700a7f62d025f45535a2cbec204c2408b3384f9',
126696,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'e8bdeae72c7ce903851b41aa0ead8cfe8e04be49e01ffc4ab944d8f70c9d2e2c',
126728,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'729fb34a41c0a85187515c5a5e70919e77bd0821ff7b5248622075f537e4d056',
126780,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'1156cedd2051706ec3417b9c907ddc1fd995bdca676462acec9af45c636a18a3',
126864,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w900,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'c66d6404c44385260f3e6f69703797ffe93a9007c19c3460e5b1f0a750965bd1',
126724,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w100,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'eadce7efee9bac6ad6832c3211eb880173f53950fffb7c63aa33a4224ee4cfb0',
126132,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w200,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'b607bede6c1ac23f4e3588c6feed8fa45edfdd470e71e0914a2bf950f75183c2',
126424,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'adacbe07662d54461b57d78076d8821601492cf0344730d4c0931c0a43a18d84',
126448,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'91941e9aa780876184af1b919879838b594a9a7b22a2aef7a28f27ef9b9f0d6f',
126324,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'8fe1da3ba24aa40df2f3a4524c1f1df8da87e0e40616414ca3f8d2740f122342',
126464,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'dd1512e0b8870a99320139c4ab7df665cfd63fc87ea95d476666e92e44a660c6',
126536,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'531e2cf121bab1c4c2b4fe9d179eb26db192d22eed8dbf555304c07bdec8fde5',
126528,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'df6c3e566423ac43a0f88a2440329e01ed18d59523c071e7928f1fe77f05ad74',
126600,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w900,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'9f7002de134987e86976b43d6c57565e868cf5557f2caaff8ec51e91155add2d',
126496,
),
};
return googleFontsTextStyle(
textStyle: textStyle,
fontFamily: 'Exo2',
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,
);
}