purpleAccent constant

MaterialAccentColor const purpleAccent

The purple accent color and swatch.

link
Icon(
  Icons.widgets,
  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.

Implementation

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