ColorScheme.light constructor

const ColorScheme.light(
  1. {Color primary: const Color(0xff6200ee),
  2. Color primaryVariant: const Color(0xff3700b3),
  3. Color secondary: const Color(0xff03dac6),
  4. Color secondaryVariant: const Color(0xff018786),
  5. Color surface: Colors.white,
  6. Color background: Colors.white,
  7. Color error: const Color(0xffb00020),
  8. Color onPrimary: Colors.white,
  9. Color onSecondary: Colors.black,
  10. Color onSurface: Colors.black,
  11. Color onBackground: Colors.black,
  12. Color onError: Colors.white,
  13. Brightness brightness: Brightness.light}
)

Create a ColorScheme based on a purple primary color that matches the baseline Material color scheme.

Implementation

const ColorScheme.light({
  this.primary = const Color(0xff6200ee),
  this.primaryVariant = const Color(0xff3700b3),
  this.secondary = const Color(0xff03dac6),
  this.secondaryVariant = const Color(0xff018786),
  this.surface = Colors.white,
  this.background = Colors.white,
  this.error = const Color(0xffb00020),
  this.onPrimary = Colors.white,
  this.onSecondary = Colors.black,
  this.onSurface = Colors.black,
  this.onBackground = Colors.black,
  this.onError = Colors.white,
  this.brightness = Brightness.light,
}) : assert(primary != null),
     assert(primaryVariant != null),
     assert(secondary != null),
     assert(secondaryVariant != null),
     assert(surface != null),
     assert(background != null),
     assert(error != null),
     assert(onPrimary != null),
     assert(onSecondary != null),
     assert(onSurface != null),
     assert(onBackground != null),
     assert(onError != null),
     assert(brightness != null);