oswald 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 Oswald font family from Google Fonts to the
given textStyle
.
See:
Implementation
static TextStyle oswald({
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>{
GoogleFontsVariant(
fontWeight: FontWeight.w200,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'73cf9867fcced84ac0fd26238bf74e4e1f69dcbefc5ff327c2a69f6c5c107e5d',
65000,
),
GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'f10d40bae3fb58ed7a554af7cb46beca6d4f2866de12223b8e349f1b30c76968',
64960,
),
GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'9dc4929f8d8935621ca4717817eb3167fc881d03d496c6dca51ff292f730c873',
64572,
),
GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'f59f85cc613954e6acc66c7f89abe9b46c1add1b2236d5bee71f4a71a7769402',
65536,
),
GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'c0d6ab388b1c3537b78f8976a204a6dc2c5d62b73ae37506d1c93575e52420f2',
65388,
),
GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'a11b684909ba0ee2b2c493e89626c6fa9df02e25dec537e42127fa0b1a4e5e92',
65232,
),
};
return googleFontsTextStyle(
textStyle: textStyle,
fontFamily: 'Oswald',
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,
);
}