blue constant

MaterialColor const blue = const MaterialColor(Colors._bluePrimaryValue, const <int, Color>{50 : const Color(4293128957), 100 : const Color(4290502395), 200 : const Color(4287679225), 300 : const Color(4284790262), 400 : const Color(4282557941), 500 : const Color(Colors._bluePrimaryValue), 600 : const Color(4280191205), 700 : const Color(4279858898), 800 : const Color(4279592384), 900 : const Color(4279060385)})

The blue primary color and swatch.

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

See also:

  • blueAccent, the corresponding accent colors.
  • indigo, lightBlue, and blueGrey, 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 blue = MaterialColor(
  _bluePrimaryValue,
  <int, Color>{
     50: Color(0xFFE3F2FD),
    100: Color(0xFFBBDEFB),
    200: Color(0xFF90CAF9),
    300: Color(0xFF64B5F6),
    400: Color(0xFF42A5F5),
    500: Color(_bluePrimaryValue),
    600: Color(0xFF1E88E5),
    700: Color(0xFF1976D2),
    800: Color(0xFF1565C0),
    900: Color(0xFF0D47A1),
  },
)