nunito static method
TextStyle
nunito({
- 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 Nunito font family from Google Fonts to the
given textStyle
.
See:
Implementation
static TextStyle nunito({
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(
'f769441af887e49e7d4e1dc3d1a4976e6bea29ef7d0264b29eebd26c1e7e0cb7',
125376,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'11e56a69a56684c29405b6921afd77f27bebc5dd2d751a31df3b928d00b0a403',
125528,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'e80eb162b059ec70c9d813608a8ca309960098918ec1b6efad8776440dc20760',
125492,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'b27224b823942b619f3cca8845d63e08bf7b1429257044525dac4b01e5de32fb',
125616,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'11bba98e5c560a31a0e12dec9248be7634e38ace48b474e468e56ed9ea0a3d1c',
125500,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'62ffdf270a46d34fc6b844db1819a8b0a91a1a87328e04e83bc8e1714e5eddb9',
125428,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'1a49dc2fdced1ca56959770c2ca172a55edcaf2275c105d3b4cbfaf3bdc516bd',
125380,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w900,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'7b706de95af680e4ec20d3e5bf8abaa15559ef44f8d11b76de0e061514457426',
125340,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w200,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'4d8ac8e81449e96e6549dfca4d4045b4d0fb403d611b8d66774b5fbb5c32a9fa',
128236,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'e96589f0b0bd8975740d5f44f3d28f692e6bcde5413b374e0659605cc9bc5cb1',
128496,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'2ddf8a00050c76d14fe8c5caa8cf6017e7426ce1e0fc0086c014aef47a490e10',
128364,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'bb2a9e6c8ec35dc3bb1803a22466125f5361c180f35869b6ccca6e0e83a97cca',
128428,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'2320e1c7af50538066438d92971916c54a62f5acde00bcc41b02f3a830c859a0',
128292,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'70696f012ffbc95b15d09b5724bd5b16cbb6f1cfa79558993d2f2d33a58b6030',
128232,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'5263160d7f62845a2996ea7e6aea9a78a5621014ad770d9e5c76715b2e1cfb44',
128268,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w900,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'8ace4fd675327a203893b2d14b4608c6d0d60f24346e81790a11e12bece0c6fc',
128176,
),
};
return googleFontsTextStyle(
textStyle: textStyle,
fontFamily: 'Nunito',
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,
);
}