yellow constant

MaterialColor const yellow = const MaterialColor(Colors._yellowPrimaryValue, const <int, Color>{50 : const Color(4294966759), 100 : const Color(4294965700), 200 : const Color(4294964637), 300 : const Color(4294963574), 400 : const Color(4294962776), 500 : const Color(Colors._yellowPrimaryValue), 600 : const Color(4294826037), 700 : const Color(4294688813), 800 : const Color(4294551589), 900 : const Color(4294278935)})

The yellow primary color and swatch.

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

See also:

  • yellowAccent, the corresponding accent colors.
  • lime and amber, 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 yellow = MaterialColor(
  _yellowPrimaryValue,
  <int, Color>{
     50: Color(0xFFFFFDE7),
    100: Color(0xFFFFF9C4),
    200: Color(0xFFFFF59D),
    300: Color(0xFFFFF176),
    400: Color(0xFFFFEE58),
    500: Color(_yellowPrimaryValue),
    600: Color(0xFFFDD835),
    700: Color(0xFFFBC02D),
    800: Color(0xFFF9A825),
    900: Color(0xFFF57F17),
  },
)