MaterialBasedCupertinoThemeData class

A CupertinoThemeData that defers unspecified theme attributes to an upstream Material ThemeData.

This type of CupertinoThemeData is used by the Material Theme to harmonize the CupertinoTheme with the material theme's colors and text styles.

In the most basic case, ThemeData's cupertinoOverrideTheme is null and and descendant Cupertino widgets' styling is derived from the Material theme.

To override individual parts of the Material-derived Cupertino styling, cupertinoOverrideTheme's construction parameters can be used.

To completely decouple the Cupertino styling from Material theme derivation, another CupertinoTheme widget can be inserted as a descendant of the Material Theme. On a MaterialApp, this can be done using the builder parameter on the constructor.

See also:



MaterialBasedCupertinoThemeData({@required ThemeData materialTheme})
Create a MaterialBasedCupertinoThemeData based on a Material ThemeData and its cupertinoOverrideTheme. [...]


brightness Brightness
The general brightness theme of the CupertinoThemeData. [...]
read-only, override
primaryColor Color
A color used on interactive elements of the theme. [...]
read-only, override
primaryContrastingColor Color
A color that must be easy to see when rendered on a primaryColor background. [...]
read-only, override
scaffoldBackgroundColor Color
Background color of the scaffold. [...]
read-only, override
barBackgroundColor Color
Background color of the top nav bar and bottom tab bar.
read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
textTheme CupertinoTextThemeData
Text styles used by Cupertino widgets.
read-only, inherited


copyWith({Brightness brightness, Color primaryColor, Color primaryContrastingColor, CupertinoTextThemeData textTheme, Color barBackgroundColor, Color scaffoldBackgroundColor}) MaterialBasedCupertinoThemeData
Copies the ThemeData's cupertinoOverrideTheme. [...]
resolveFrom(BuildContext context, {bool nullOk: false}) CupertinoThemeData
Returns a new CupertinoThemeData with all its colors resolved against the given BuildContext. [...]
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
noDefault() CupertinoThemeData
Returns an instance of the CupertinoThemeData whose property getters only return the construction time specifications with no derived values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toDiagnosticsNode({String name, DiagnosticsTreeStyle style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
toString({DiagnosticLevel minLevel: DiagnosticLevel.debug}) String
Returns a string representation of this object.
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.


operator ==(dynamic other) bool
The equality operator. [...]