ColorScheme class abstract
A color scheme defines the colors that represent the application's brand in styles. It defines the colors that use in a proper and semantic way. Used to represent the application's brand in styles.
- Mixed-in types
- Annotations
-
- @freezed
Constructors
- ColorScheme.new({required Brightness brightness, required Color scrim, required Color canvas, required Color shadow, required Color brandPrimary, required Color onBrandPrimary, required Color brandSecondary, required Color onBrandSecondary, required Color brandTertiary, required Color onBrandTertiary, required Color textPrimary, required Color textSecondary, required Color textTertiary, required Color statusSuccess, required Color statusError, required Color statusWarning, required Color statusInfo, required Color surfacePrimary, required Color surfaceSecondary, required Color surfaceTertiary, required Color outlineStandard, required Color outlineDivider, @Default(0.8) double stateHoverOpacity, @Default(0.7) double statePressedOpacity, @Default(0.9) double stateFocusOpacity, @Default(0.5) double stateDisabledOpacity})
-
Creates a instance of ColorScheme.
constfactory
- ColorScheme.light()
-
Returns a ColorScheme for light mode.
factory
Properties
- brandPrimary → Color
-
no setterinherited
- brandSecondary → Color
-
no setterinherited
- brandTertiary → Color
-
no setterinherited
- brightness → Brightness
-
no setterinherited
- canvas → Color
-
no setterinherited
-
copyWith
→ $ColorSchemeCopyWith<
ColorScheme> -
Create a copy of ColorScheme
with the given fields replaced by the non-null parameter values.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- onBrandPrimary → Color
-
no setterinherited
- onBrandSecondary → Color
-
no setterinherited
- onBrandTertiary → Color
-
no setterinherited
- outlineDivider → Color
-
no setterinherited
- outlineStandard → Color
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrim → Color
-
no setterinherited
- shadow → Color
-
no setterinherited
- stateDisabledOpacity → double
-
no setterinherited
- stateFocusOpacity → double
-
no setterinherited
- stateHoverOpacity → double
-
no setterinherited
- statePressedOpacity → double
-
no setterinherited
- statusError → Color
-
no setterinherited
- statusInfo → Color
-
no setterinherited
- statusSuccess → Color
-
no setterinherited
- statusWarning → Color
-
no setterinherited
- surfacePrimary → Color
-
no setterinherited
- surfaceSecondary → Color
-
no setterinherited
- surfaceTertiary → Color
-
no setterinherited
- textPrimary → Color
-
no setterinherited
- textSecondary → Color
-
no setterinherited
- textTertiary → Color
-
no setterinherited
Methods
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
getStateOverlay(
Color base, UIState state, [Color? background]) → Color -
Returns the state overlay color for the
base
on thebackground
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
of(
BuildContext context) → ColorScheme - Retrieves the ColorScheme from the nearest WaveApp ancestor.