ThemeData class

Theme values shared by descendants through CSS custom properties.

Theme(data: ThemeData(), child: StyledText('Themed'));

Constructors

ThemeData({Color primaryColor = Colors.blue, Color backgroundColor = Colors.white, Color surfaceColor = Colors.white, Color textColor = Colors.black, Color mutedTextColor = Colors.grey, num borderRadius = 8, String fontFamily = 'sans-serif'})
Creates theme values.
const

Properties

backgroundColor → Color
Page background.
final
borderRadius → num
Corner radius in logical pixels.
final
fontFamily → String
Font family.
final
hashCode → int
The hash code for this object.
no setterinherited
mutedTextColor → Color
Muted text color.
final
primaryColor → Color
Primary color.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
surfaceColor → Color
Surface color.
final
textColor → Color
Main text color.
final

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