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:

Constructors

CupertinoFontConfig.fromMacOsSystemFonts({String? fallbackOverride})
Loads Apple's SF Pro fonts from /Library/Fonts on macOS.
const
factory
CupertinoFontConfig.override({String fontFamily})
Overrides CupertinoSystemText and CupertinoSystemDisplay with the given fontFamily.
const
factory

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