AppTheme class

Factory for the app's light and dark ThemeData configurations.

Both themes register Spacing and CornerRadius as ThemeExtensions, accessible via the ThemeExtras helpers on ThemeData (for example, context.theme.spacing_4 or context.theme.radius_8).

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

Static Methods

darkTheme() ThemeData
The dark ThemeData for this app.
lightTheme() ThemeData
The light ThemeData for this app.
setStatusBarAndNavigationBarColors(ThemeMode themeMode) → void
Applies status bar and system navigation bar colours to match themeMode.