purpleAccent constant

MaterialAccentColor const purpleAccent = const MaterialAccentColor(Colors._purpleAccentPrimaryValue, const <int, Color>{100 : const Color(4293558524), 200 : const Color(Colors._purpleAccentPrimaryValue), 400 : const Color(4292149497), 700 : const Color(4289331455)})

The purple accent color and swatch.

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),
  },
)