AppTheme class
Constructors
- AppTheme({required Brightness brightness, required Color primaryColor, required Color secondaryColor, required Color backgroundColor})
- Create a ColorScheme instance.
- AppTheme.from({Brightness brightness = Brightness.light, Color primaryColor = ColorConstants.primaryDefault, Color? secondaryColor, Color? backgroundColor})
-
factory
Properties
- accentColor → Color
-
no setter
- backgroundColor → Color
-
A color that typically appears behind scrollable content.
final
- brightness → Brightness
-
The overall brightness of this color scheme.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- primaryColor → Color
-
The color displayed most frequently across your app’s screens and components.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondaryColor → Color
-
An accent color that, when used sparingly, calls attention to parts
of your app.
final
Methods
-
copyWith(
{Color? primaryColor, Color? secondaryColor, Color? backgroundColor, Brightness? brightness}) → AppTheme -
encoded(
) → dynamic -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
toThemeData(
) → ThemeData
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited