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:

Inheritance

Constructors

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

Properties

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 used for content that must contrast against 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

Methods

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

Operators

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