primaryColors constant

List<ColorSwatch<Object>> const primaryColors

List of all the standard Material primary color swatches.

A Material primary colors swatch list also exists in the Flutter SDK in colors.dart as a static const Colors.primaries, but that list excludes grey. To make the grey color available to the color picker, this list includes it as well.

Implementation

static const List<ColorSwatch<Object>> primaryColors = <ColorSwatch<Object>>[
  Colors.red,
  Colors.pink,
  Colors.purple,
  Colors.deepPurple,
  Colors.indigo,
  Colors.blue,
  Colors.lightBlue,
  Colors.cyan,
  Colors.teal,
  Colors.green,
  Colors.lightGreen,
  Colors.lime,
  Colors.yellow,
  Colors.amber,
  Colors.orange,
  Colors.deepOrange,
  Colors.brown,
  Colors.blueGrey,
  Colors.grey,
];