amberAccent constant

MaterialAccentColor const amberAccent = const MaterialAccentColor(_amberAccentPrimaryValue, const <int, Color> {100 : const Color(0xFFFFE57F), 200 : const Color(_amberAccentPrimaryValue), 400 : const Color(0xFFFFC400), 700 : const Color(0xFFFFAB00)})

The amber accent color and swatch.

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

See also:

  • amber, the corresponding primary colors.
  • yellowAccent and orangeAccent, 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 MaterialAccentColor amberAccent = MaterialAccentColor(
  _amberAccentPrimaryValue,
  <int, Color>{
    100: Color(0xFFFFE57F),
    200: Color(_amberAccentPrimaryValue),
    400: Color(0xFFFFC400),
    700: Color(0xFFFFAB00),
  },
)