ThemeBase class
Contains some basic information about a theme which is later used to generate a fully fledged theme.
- Annotations
Constructors
- ThemeBase({required Color primaryColor, required Color secondaryColor, required Color tertiaryColor, required Color accentColor, required Color onAccentColor, required Color errorColor, required Color moduleDoneColor, required Color modulePendingColor, required Color moduleUploadedColor, required Color textColor, required String name, required IconData icon, required Brightness brightness, @Default(false) bool usesMaterial3})
-
Contains some basic information about a theme which is later used to generate a fully fledged theme.
factory
Properties
- accentColor → Color
-
The color to use for buttons and other interactive elements.
no setterinherited
- brightness → Brightness
-
The brightness of the theme.
no setterinherited
-
copyWith
→ $ThemeBaseCopyWith<
ThemeBase> -
Create a copy of ThemeBase
with the given fields replaced by the non-null parameter values.
no setterinherited
- errorColor → Color
-
The color to use to indicate errors.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → IconData
-
The icon of the theme.
no setterinherited
- moduleDoneColor → Color
-
The color to use for modules that are completed.
no setterinherited
- modulePendingColor → Color
-
The color to use for modules that are pending.
no setterinherited
- moduleUploadedColor → Color
-
The color to use for modules that have been uploaded.
no setterinherited
- name → String
-
The name of the theme.
no setterinherited
- onAccentColor → Color
-
The color to use for text on top of the primary color.
no setterinherited
- primaryColor → Color
-
The color to use for the surface of components.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondaryColor → Color
-
The color to use for the background of the app.
no setterinherited
- tertiaryColor → Color
-
The color to use for separators and dividers.
no setterinherited
- textColor → Color
-
The color to use for text.
no setterinherited
- usesMaterial3 → bool
-
Whether the theme uses Material 3.
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