Map<int, Color> red = const {50 : const Color(0xFFFFEBEE), 100 : const Color(0xFFFFCDD2), 200 : const Color(0xFFEF9A9A), 300 : const Color(0xFFE57373), 400 : const Color(0xFFEF5350), 500 : const Color(0xFFF44336), 600 : const Color(0xFFE53935), 700 : const Color(0xFFD32F2F), 800 : const Color(0xFFC62828), 900 : const Color(0xFFB71C1C)}

The red primary swatch.

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

See also:

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