Palette class
Value palette describing the colors of the scanner screens.
Constructors
- Palette({ScanbotColor? sbColorPrimary, ScanbotColor? sbColorPrimaryDisabled, ScanbotColor? sbColorNegative, ScanbotColor? sbColorPositive, ScanbotColor? sbColorWarning, ScanbotColor? sbColorSecondary, ScanbotColor? sbColorSecondaryDisabled, ScanbotColor? sbColorOnPrimary, ScanbotColor? sbColorOnSecondary, ScanbotColor? sbColorSurface, ScanbotColor? sbColorOutline, ScanbotColor? sbColorOnSurfaceVariant, ScanbotColor? sbColorOnSurface, ScanbotColor? sbColorSurfaceLow, ScanbotColor? sbColorSurfaceHigh, ScanbotColor? sbColorModalOverlay})
-
Palette.fromJson(Map<
String, dynamic> json) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sbColorModalOverlay ↔ ScanbotColor
-
The color with a very high alpha (transparency) value used to fill certain overlays.
Default is "#000000A3"
getter/setter pair
- sbColorNegative ↔ ScanbotColor
-
The color used to convey a negative meaning.
Default is "#FF3737"
getter/setter pair
- sbColorOnPrimary ↔ ScanbotColor
-
The color used for displaying elements on top of the primary color.
Default is "#FFFFFF"
getter/setter pair
- sbColorOnSecondary ↔ ScanbotColor
-
The color used for displaying elements on top of the secondary color.
Default is "#C8193C"
getter/setter pair
- sbColorOnSurface ↔ ScanbotColor
-
The color used on top of surfaces.
Default is "#000000"
getter/setter pair
- sbColorOnSurfaceVariant ↔ ScanbotColor
-
The alternative color used on top of surfaces.
Default is "#707070"
getter/setter pair
- sbColorOutline ↔ ScanbotColor
-
The color used for outlines.
Default is "#EFEFEF"
getter/setter pair
- sbColorPositive ↔ ScanbotColor
-
The color used to convey a positive meaning.
Default is "#4EFFB4"
getter/setter pair
- sbColorPrimary ↔ ScanbotColor
-
The primary color used for enabled elements.
Default is "#C8193C"
getter/setter pair
- sbColorPrimaryDisabled ↔ ScanbotColor
-
The primary color used for disabled elements.
Default is "#F5F5F5"
getter/setter pair
- sbColorSecondary ↔ ScanbotColor
-
The secondary color used for enabled elements.
Default is "#FFEDEE"
getter/setter pair
- sbColorSecondaryDisabled ↔ ScanbotColor
-
The secondary color used for disabled elements.
Default is "#F5F5F5"
getter/setter pair
- sbColorSurface ↔ ScanbotColor
-
The color used for surfaces.
Default is "#FFFFFF"
getter/setter pair
- sbColorSurfaceHigh ↔ ScanbotColor
-
The color with a high alpha (transparency) value used for certain surfaces.
Default is "#0000007A"
getter/setter pair
- sbColorSurfaceLow ↔ ScanbotColor
-
The color with a low alpha (transparency) value used for certain surfaces.
Default is "#00000026"
getter/setter pair
- sbColorWarning ↔ ScanbotColor
-
The color used to convey warnings.
Default is "#FFCE5C"
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited