deepPurpleAccent constant

MaterialAccentColor const deepPurpleAccent = MaterialAccentColor(_deepPurpleAccentPrimaryValue, <int, Color>{100 : Color(4289956095), 200 : Color(_deepPurpleAccentPrimaryValue), 400 : Color(4284817407), 700 : Color(4284612842)})

The deep purple accent color and swatch.

Icon(
  Icons.widgets,
  color: Colors.deepPurpleAccent[400],
)

See also:

  • deepPurple, the corresponding primary colors.
  • purpleAccent and indigoAccent, 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 deepPurpleAccent = MaterialAccentColor(
  _deepPurpleAccentPrimaryValue,
  <int, Color>{
    100: Color(0xFFB388FF),
    200: Color(_deepPurpleAccentPrimaryValue),
    400: Color(0xFF651FFF),
    700: Color(0xFF6200EA),
  },
)