amber constant

MaterialColor const amber = MaterialColor(_amberPrimaryValue, <int, Color>{50 : Color(4294965473), 100 : Color(4294962355), 200 : Color(4294959234), 300 : Color(4294956367), 400 : Color(4294953512), 500 : Color(_amberPrimaryValue), 600 : Color(4294947584), 700 : Color(4294942720), 800 : Color(4294938368), 900 : Color(4294930176)})

The amber primary color and swatch.

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

See also:

  • amberAccent, the corresponding accent colors.
  • yellow and orange, 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 amber = MaterialColor(
  _amberPrimaryValue,
  <int, Color>{
     50: Color(0xFFFFF8E1),
    100: Color(0xFFFFECB3),
    200: Color(0xFFFFE082),
    300: Color(0xFFFFD54F),
    400: Color(0xFFFFCA28),
    500: Color(_amberPrimaryValue),
    600: Color(0xFFFFB300),
    700: Color(0xFFFFA000),
    800: Color(0xFFFF8F00),
    900: Color(0xFFFF6F00),
  },
)