Palette constructor
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,
Implementation
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,
}) : sbColorPrimary = sbColorPrimary ?? ScanbotColor("#C8193C"),
sbColorPrimaryDisabled =
sbColorPrimaryDisabled ?? ScanbotColor("#F5F5F5"),
sbColorNegative = sbColorNegative ?? ScanbotColor("#FF3737"),
sbColorPositive = sbColorPositive ?? ScanbotColor("#4EFFB4"),
sbColorWarning = sbColorWarning ?? ScanbotColor("#FFCE5C"),
sbColorSecondary = sbColorSecondary ?? ScanbotColor("#FFEDEE"),
sbColorSecondaryDisabled =
sbColorSecondaryDisabled ?? ScanbotColor("#F5F5F5"),
sbColorOnPrimary = sbColorOnPrimary ?? ScanbotColor("#FFFFFF"),
sbColorOnSecondary = sbColorOnSecondary ?? ScanbotColor("#C8193C"),
sbColorSurface = sbColorSurface ?? ScanbotColor("#FFFFFF"),
sbColorOutline = sbColorOutline ?? ScanbotColor("#EFEFEF"),
sbColorOnSurfaceVariant =
sbColorOnSurfaceVariant ?? ScanbotColor("#707070"),
sbColorOnSurface = sbColorOnSurface ?? ScanbotColor("#000000"),
sbColorSurfaceLow = sbColorSurfaceLow ?? ScanbotColor("#00000026"),
sbColorSurfaceHigh = sbColorSurfaceHigh ?? ScanbotColor("#0000007A"),
sbColorModalOverlay = sbColorModalOverlay ?? ScanbotColor("#000000A3");