ColorScheme.dark constructor

const ColorScheme.dark({Color primary: const Color(0xffbb86fc), Color primaryVariant: const Color(0xff3700B3), Color secondary: const Color(0xff03dac6), Color secondaryVariant: const Color(0xff03dac6), Color surface: const Color(0xff121212), Color background: const Color(0xff121212), Color error: const Color(0xffcf6679), Color onPrimary: Colors.black, Color onSecondary: Colors.black, Color onSurface: Colors.white, Color onBackground: Colors.white, Color onError: Colors.black, Brightness brightness: Brightness.dark })

Create the recommended dark color scheme that matches the baseline Material color scheme.

Implementation

const ColorScheme.dark({
  this.primary = const Color(0xffbb86fc),
  this.primaryVariant = const Color(0xff3700B3),
  this.secondary = const Color(0xff03dac6),
  this.secondaryVariant = const Color(0xff03dac6),
  this.surface = const Color(0xff121212),
  this.background = const Color(0xff121212),
  this.error = const Color(0xffcf6679),
  this.onPrimary = Colors.black,
  this.onSecondary = Colors.black,
  this.onSurface = Colors.white,
  this.onBackground = Colors.white,
  this.onError = Colors.black,
  this.brightness = Brightness.dark,
}) : 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);