deepPurple constant

MaterialColor const deepPurple = MaterialColor(_deepPurplePrimaryValue, <int, Color>{50 : Color(4293781494), 100 : Color(4291937513), 200 : Color(4289961435), 300 : Color(4287985101), 400 : Color(4286470082), 500 : Color(_deepPurplePrimaryValue), 600 : Color(4284364209), 700 : Color(4283510184), 800 : Color(4282722208), 900 : Color(4281408402)})

The deep purple primary color and swatch.

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

See also:

  • deepPurpleAccent, the corresponding accent colors.
  • purple and indigo, 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 MaterialColor deepPurple = MaterialColor(
  _deepPurplePrimaryValue,
  <int, Color>{
     50: Color(0xFFEDE7F6),
    100: Color(0xFFD1C4E9),
    200: Color(0xFFB39DDB),
    300: Color(0xFF9575CD),
    400: Color(0xFF7E57C2),
    500: Color(_deepPurplePrimaryValue),
    600: Color(0xFF5E35B1),
    700: Color(0xFF512DA8),
    800: Color(0xFF4527A0),
    900: Color(0xFF311B92),
  },
)