Map<int, Color> deepPurple = const {50 : const Color(0xFFEDE7F6), 100 : const Color(0xFFD1C4E9), 200 : const Color(0xFFB39DDB), 300 : const Color(0xFF9575CD), 400 : const Color(0xFF7E57C2), 500 : const Color(0xFF673AB7), 600 : const Color(0xFF5E35B1), 700 : const Color(0xFF512DA8), 800 : const Color(0xFF4527A0), 900 : const Color(0xFF311B92)}

The deep purple primary swatch.

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

See also:

  • deepPurpleAccent, the corresponding accent colors.
  • of, which allows you to select colors from the current theme rather than hard-coding colors in your build methods.