AndroidFontInfo class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setteroverride
-
isCustom
→ bool?
-
Whether to use a custom font. Default is false.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
style
→ FontStyle?
-
The font style applied to the typeface. Accepts
FontStyle.normal or
FontStyle.italic.
Only supported on Android.
final
-
typefaceName
→ String?
-
The Android system typeface name, such as "DEFAULT", "DEFAULT_BOLD", "SANS_SERIF", "SERIF", "MONOSPACE".
Or custom font name, such as: "fonts/kaushanscript_regular.ttf". (You need to set the isCustom=true and put the font file in the "assets" directory: app/src/main/assets/fonts/kaushanscript_regular.ttf)
final
-
weight
→ FontWeight?
-
The font weight applied to the typeface. Accepts any of Flutter's
FontWeight constants (
FontWeight.w100–FontWeight.w900,
FontWeight.normal, FontWeight.bold).
final