Constants class
The Constants class contains color constants for light and dark themes, including primary and accent colors, as well as background colors for both themes. It provides two ThemeData instances:
- lightTheme: Configured for a light user interface with appropriate colors and styles.
- darkTheme: Configured for a dark user interface, featuring contrasting colors for visibility. Additionally, an enumeration EditorBackground is defined to specify the background types available for editors, such as no background, gradient background, or blurred background.
Constructors
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 Properties
- darkTheme ↔ ThemeData
-
getter/setter pair
- lightTheme ↔ ThemeData
-
getter/setter pair
Constants
- darkAccent → const Color
- darkBG → const Color
- darkPrimary → const Color
- lightAccent → const Color
- lightBG → const Color
- lightPrimary → const Color