Map<int, Color>
purple =
const {50 : const Color(0xFFF3E5F5), 100 : const Color(0xFFE1BEE7), 200 : const Color(0xFFCE93D8), 300 : const Color(0xFFBA68C8), 400 : const Color(0xFFAB47BC), 500 : const Color(0xFF9C27B0), 600 : const Color(0xFF8E24AA), 700 : const Color(0xFF7B1FA2), 800 : const Color(0xFF6A1B9A), 900 : const Color(0xFF4A148C)}
The purple primary swatch.
new Icon(
icon: Icons.widgets,
color: Colors.purple[400],
),
See also:
- purpleAccent, the corresponding accent colors.
- of, which allows you to select colors from the current theme
rather than hard-coding colors in your build methods.