baloo2 static method
TextStyle
baloo2({
- 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 Baloo 2 font family from Google Fonts to the
given textStyle
.
See:
Implementation
static TextStyle baloo2({
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.w400,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'50f1fa75576179db905615b5082a9cc002d428b28978b665b2104c7bb66dc734',
418540,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'a75bd421ee450e7d822122c1a1a14bc950175c2ffacf755fae53c2a69081e5a8',
418852,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'29ae9534de2fdb12104bd01aed59e45714043b2385ae9e27260c70f3d313df1a',
418760,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'19b747c63cb3dfb634894e1724013a5013b9913f344e4db2d926bc8ad66b0d11',
418628,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'e3e109e93272c4824337c012dd567915c1a7a0cf9542c54f46fca29cfec233d8',
418236,
),
};
return googleFontsTextStyle(
textStyle: textStyle,
fontFamily: 'Baloo2',
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,
);
}