kufam static method
TextStyle
kufam({
- 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 Kufam font family from Google Fonts to the
given textStyle
.
See:
Implementation
static TextStyle kufam({
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(
'4f1ab84214b1adf0a0a4b2dbcccf9a62aabf20e9b37d79e545ac02d757c071ef',
159836,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'de0980aaca970da9998dcab38a2093c3e79d764dc49d30fb5c58e45704ded538',
160148,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'06f3a99265c5abaed7f2831621abb13a7be7226b4ee277e2a1516072ab0f23ab',
160252,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'79ba1ae1009ba3608e5f4e0efc46545123b2a6e7de4dd21f0fc03ffc7145ef17',
160320,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'ff3b4cf93cfea88133e2be4579dc2d241ea0a0b00e3139258f4ea2f87e1969bf',
160244,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w900,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'2354ea691564b8aef6af6cec53f2c25b578bcd87e728dd8dede44d799471fd5d',
159756,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'e44c90c8929f766901844c7d0d51e6a5102f259af493ba906d4f946628643363',
163424,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'3b9a67b5a55c486e4dc37fd2ec340d793d5e3451570fcd9695ca82c6d76072fc',
163932,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'621cf380b50312f962c34a8ff4c6acbf98cb8bb11a0a6b0303122715fad3391f',
163940,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'227aab437d3d94d2b88fd781860acf04567132c8ff1486fc8557a046a8826553',
163916,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'44f90b4b1848ea42428f055eb46244adedf2662973bd8fe834a2498b5744e304',
163884,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w900,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'c935ce15f51b044c72f6ce512be84c82e9dad9a0226ed17a31ff5db36b493c14',
163352,
),
};
return googleFontsTextStyle(
textStyle: textStyle,
fontFamily: 'Kufam',
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,
);
}