Map<int, Color>
greenAccent =
const {100 : const Color(0xFFB9F6CA), 200 : const Color(0xFF69F0AE), 400 : const Color(0xFF00E676), 700 : const Color(0xFF00C853)}
The green accent swatch.
new Icon(
icon: Icons.widgets,
color: Colors.greenAccent[400],
),
See also:
- green, the corresponding primary colors.
- of, which allows you to select colors from the current theme
rather than hard-coding colors in your build methods.