orange constant

MaterialColor const orange = const MaterialColor(_orangePrimaryValue, const <int, Color> {50 : const Color(0xFFFFF3E0), 100 : const Color(0xFFFFE0B2), 200 : const Color(0xFFFFCC80), 300 : const Color(0xFFFFB74D), 400 : const Color(0xFFFFA726), 500 : const Color(_orangePrimaryValue), 600 : const Color(0xFFFB8C00), 700 : const Color(0xFFF57C00), 800 : const Color(0xFFEF6C00), 900 : const Color(0xFFE65100)})

The orange primary color and swatch.

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

See also:

  • orangeAccent, the corresponding accent colors.
  • amber, deepOrange, and brown, 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 orange = MaterialColor(
  _orangePrimaryValue,
  <int, Color>{
     50: Color(0xFFFFF3E0),
    100: Color(0xFFFFE0B2),
    200: Color(0xFFFFCC80),
    300: Color(0xFFFFB74D),
    400: Color(0xFFFFA726),
    500: Color(_orangePrimaryValue),
    600: Color(0xFFFB8C00),
    700: Color(0xFFF57C00),
    800: Color(0xFFEF6C00),
    900: Color(0xFFE65100),
  },
)