red constant

MaterialColor const red = const MaterialColor(Colors._redPrimaryValue, const <int, Color>{50 : const Color(4294962158), 100 : const Color(4294954450), 200 : const Color(4293892762), 300 : const Color(4293227379), 400 : const Color(4293874512), 500 : const Color(Colors._redPrimaryValue), 600 : const Color(4293212469), 700 : const Color(4292030255), 800 : const Color(4291176488), 900 : const Color(4290190364)})

The red primary color and swatch.

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

See also:

  • redAccent, the corresponding accent colors.
  • deepOrange and pink, 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 red = MaterialColor(
  _redPrimaryValue,
  <int, Color>{
     50: Color(0xFFFFEBEE),
    100: Color(0xFFFFCDD2),
    200: Color(0xFFEF9A9A),
    300: Color(0xFFE57373),
    400: Color(0xFFEF5350),
    500: Color(_redPrimaryValue),
    600: Color(0xFFE53935),
    700: Color(0xFFD32F2F),
    800: Color(0xFFC62828),
    900: Color(0xFFB71C1C),
  },
)