kanit static method
TextStyle
kanit({
- 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 Kanit font family from Google Fonts to the
given textStyle
.
See:
Implementation
static TextStyle kanit({
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(
'ecb70809ddf8d383ce0eb17b5875b3aff0d80084491bd7ad28385dd429f8f531',
89304,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w100,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'899838533ecfa040cf494455da4088fdc537c5532981b481b567d5d2ba386ac2',
93928,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w200,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'e9dd63eaa1439073d5e9fcaf1cef251e137c76a9c0aa3c4eaa442859c67423f4',
88592,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w200,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'b03adc32a30e13c85425958018fb98510b59bbdb2a460556c10821eca9a70d2d',
93544,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'2f51ccef7b503457d1aed5446634c82bb56058231a5abdeb8a280a596a57179c',
88744,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w300,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'62c9a9f61f65065d4deb835855beb7a68fa51d9993b28912659f3c1b8dbaf7c0',
93564,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'95337e35175f79fcad3ea6f8cc76a58333983735249fa98fd20892640a37d4bd',
88056,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w400,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'c041216ea979f3598ac1133392b1b799598071de5201d923043af847b2b972f6',
93008,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'0284311339f571c132f0445d22b928b77b22116b7ae289b6129607f091eb2176',
87548,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w500,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'f49017f139254e99a14c79a450588a94a0a95b89a1a288b19291bd5d2c9fe0bd',
92712,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'0dc5a22e25e9aa453721b0c423ad4eb5fdb38b335429783f8ba1f25161740ed1',
87732,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w600,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'72293cdca95777391bfdc19e9b5183a8d068b240d0d60b1d1733bfe2c5a0b947',
92928,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'23845269857bd5c16b931dbe118ba8eb5daca885effc103d1aa7fa2fd4cb74d2',
87448,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w700,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'8577689bca6842634b9317944145ba206e0af7a5967deb76aff1a2df83ccc354',
98732,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'68117b377ac646442ec1cb2ab0449b943b62c2fa6b7b318bf2c05e8c8f0a20cd',
87604,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w800,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'3fb969822ef983c9804fc7950be154e13f46d6da3a7511f1f18ac30c7b0ba6f6',
98916,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w900,
fontStyle: FontStyle.normal,
): GoogleFontsFile(
'943f15ab4ae7e0f4bc78f2827af961b842ea62a2bda4c9d8f86c6a4fb77025cc',
87400,
),
const GoogleFontsVariant(
fontWeight: FontWeight.w900,
fontStyle: FontStyle.italic,
): GoogleFontsFile(
'f92396b87ca2d2b0a70753a6705498cc2be644e1f7caa0ddf95cdc14cdc0b5e5',
98380,
),
};
return googleFontsTextStyle(
textStyle: textStyle,
fontFamily: 'Kanit',
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,
);
}