swatches library Null safety

Swatches.

Swatch is a general purpose interface that represents any collection of related colors. For example, classes that implement it could represent:

  • rainbow colors
  • gradient of a brand logo
  • shades of grey

Classes

Accents
The Material Design accent color swatches.
AmberAccents
Material Design shades of amber accent.
Ambers
Material Design shades of amber.
BlueAccents
Material Design shades of blue accent.
BlueGreys
Material Design shades of blue-grey.
Blues
Material Design shades of blue.
Browns
Material Design shades of brown.
CyanAccents
Material Design shades of cyan accent.
Cyans
Material Design shades of cyan.
DeepOrangeAccents
Material Design shades of deep orange accent.
DeepOranges
Material Design shades of deep orange.
DeepPurpleAccents
Material Design shades of deep purple accent.
DeepPurples
Material Design shades of deep purple.
GreenAccents
Material Design shades of green accent.
Greens
Material Design shades of green.
Greys
Material Design shades of grey.
IndigoAccents
Material Design shades of indigo accent.
Indigos
Material Design shades of indigo.
LightBlueAccents
Material Design shades of light blue accent.
LightBlues
Material Design shades of light blue.
LightGreenAccents
Material Design shades of light green accent.
LightGreens
Material Design shades of light green.
LimeAccents
Material Design shades of lime accent.
Limes
Material Design shades of lime.
OrangeAccents
Material Design shades of orange accent.
Oranges
Material Design shades of orange.
PinkAccents
Material Design shades of pink accent.
Pinks
Material Design shades of pink.
Primaries
Material Design primary colors, excluding grey.
PurpleAccents
Material Design shades of purple accent.
Purples
Material Design shades of purple.
RedAccents
Material Design shades of red accent.
Reds
Material Design shades of red.
Swatch
A color swatch.
SwatchBase
Base Swatch.
TealAccents
Material Design shades of teal accent.
Teals
Material Design shades of teal.
YellowAccents
Material Design shades of yellow accent.
Yellows
Material Design shades of yellow.