CupertinoFontConfig class sealed
Controls how Cupertino system fonts (CupertinoSystemText and
CupertinoSystemDisplay) are loaded for screenshot rendering.
These font families are used by Flutter's Material iOS typography and Cupertino widgets. Choosing the same font on all platforms ensures golden tests produce identical images everywhere.
See also:
- loadFonts, which accepts a CupertinoFontConfig.
Constructors
- CupertinoFontConfig.fromMacOsSystemFonts({String? fallbackOverride})
-
Loads Apple's SF Pro fonts from
/Library/Fontson macOS.constfactory - CupertinoFontConfig.override({String fontFamily})
-
Overrides
CupertinoSystemTextandCupertinoSystemDisplaywith the givenfontFamily.constfactory
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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited