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
Transparent color with a very high alpha value used to fill certain overlays. Default is "#000000A3"
getter/setter pair
sbColorNegative ScanbotColor
Color used to convey a negative meaning. Default is "#FF3737"
getter/setter pair
sbColorOnPrimary ScanbotColor
Color used for displaying elements on top of the primary color. Default is "#FFFFFF"
getter/setter pair
sbColorOnSecondary ScanbotColor
Color used for displaying elements on top of the secondary color. Default is "#C8193C"
getter/setter pair
sbColorOnSurface ScanbotColor
Color used on top of surfaces. Default is "#000000"
getter/setter pair
sbColorOnSurfaceVariant ScanbotColor
Alternative color used on top of surfaces. Default is "#707070"
getter/setter pair
sbColorOutline ScanbotColor
Color used for outlines. Default is "#EFEFEF"
getter/setter pair
sbColorPositive ScanbotColor
Color used to convey a positive meaning. Default is "#4EFFB4"
getter/setter pair
sbColorPrimary ScanbotColor
Primary color used for enabled elements. Default is "#C8193C"
getter/setter pair
sbColorPrimaryDisabled ScanbotColor
Primary color used for disabled elements. Default is "#F5F5F5"
getter/setter pair
sbColorSecondary ScanbotColor
Secondary color used for enabled elements. Default is "#FFEDEE"
getter/setter pair
sbColorSecondaryDisabled ScanbotColor
Secondary color used for disabled elements. Default is "#F5F5F5"
getter/setter pair
sbColorSurface ScanbotColor
Color used for surfaces. Default is "#FFFFFF"
getter/setter pair
sbColorSurfaceHigh ScanbotColor
Transparent color with a high alpha value used for certain surfaces. Default is "#0000007A"
getter/setter pair
sbColorSurfaceLow ScanbotColor
Transparent color with a low alpha value used for certain surfaces. Default is "#00000026"
getter/setter pair
sbColorWarning ScanbotColor
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