CupertinoThemeData class

Styling specifications for a CupertinoTheme.

All constructor parameters can be null, in which case a CupertinoColors.activeBlue based default iOS theme styling is used.

Parameters can also be partially specified, in which case some parameters will cascade down to other dependent parameters to create a cohesive visual effect. For instance, if a primaryColor is specified, it would cascade down to affect some fonts in textTheme if textTheme is not specified.

See also:

Inheritance
Implementers
Annotations
  • @immutable

Constructors

CupertinoThemeData({Brightness brightness, Color primaryColor, Color primaryContrastingColor, CupertinoTextThemeData textTheme, Color barBackgroundColor, Color scaffoldBackgroundColor })
Create a CupertinoTheme styling specification. [...]
const
CupertinoThemeData.raw(Brightness _brightness, Color _primaryColor, Color _primaryContrastingColor, CupertinoTextThemeData _textTheme, Color _barBackgroundColor, Color _scaffoldBackgroundColor)
Same as the default constructor but with positional arguments to avoid forgetting any and to specify all arguments. [...]
const

Properties

barBackgroundColor Color
Background color of the top nav bar and bottom tab bar. [...]
read-only
brightness Brightness
The general brightness theme of the CupertinoThemeData. [...]
read-only
primaryColor Color
A color used on interactive elements of the theme. [...]
read-only
primaryContrastingColor Color
A color used for content that must contrast against a primaryColor background. [...]
read-only
scaffoldBackgroundColor Color
Background color of the scaffold. [...]
read-only
textTheme CupertinoTextThemeData
Text styles used by Cupertino widgets. [...]
read-only
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

Methods

copyWith({Brightness brightness, Color primaryColor, Color primaryContrastingColor, CupertinoTextThemeData textTheme, Color barBackgroundColor, Color scaffoldBackgroundColor }) CupertinoThemeData
Create a copy of CupertinoThemeData with specified attributes overridden. [...]
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
override
noDefault() CupertinoThemeData
Return 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. [...]
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