DynamicFonts class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
asMap()
→ Map<String, TextStyleBuilder>
-
Get a map of all available fonts.
-
getFont(String fontFamily, {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})
→ TextStyle
-
Retrieve a font by family name.
-
getTextTheme(String fontFamily, [TextTheme? textTheme])
→ TextTheme
-
Retrieve a text theme by its font family name.
-
pendingFonts([List? _])
→ Future<List<void>>
-
-
register(String familyName, Map<DynamicFontsVariant, DynamicFontsFile> variantMap, {bool eager = false})
→ void
-
-
styleBuilder(String fontFamily, Map<DynamicFontsVariant, DynamicFontsFile> variantMap, bool eager)
→ TextStyleBuilder
-
-
themeBuilder(TextStyleBuilder styleBuilder)
→ TextThemeBuilder
-