purpleAccent constant Null safety

MaterialAccentColor const purpleAccent

The purple accent color and swatch.

  color: Colors.purpleAccent[400],

See also:

  • purple, the corresponding primary colors.
  • deepPurpleAccent and pinkAccent, similar colors.
  • Theme.of, which allows you to select colors from the current theme rather than hard-coding colors in your build methods.


static const MaterialAccentColor purpleAccent = MaterialAccentColor(
  <int, Color>{
    100: Color(0xFFEA80FC),
    200: Color(_purpleAccentPrimaryValue),
    400: Color(0xFFD500F9),
    700: Color(0xFFAA00FF),