ColorScheme.highContrastDark constructor Null safety
- {Brightness brightness = Brightness.dark,
- Color primary = const Color(0xffefb7ff),
- Color onPrimary = Colors.black,
- Color? primaryContainer,
- Color? onPrimaryContainer,
- Color secondary = const Color(0xff66fff9),
- Color onSecondary = Colors.black,
- Color? secondaryContainer,
- Color? onSecondaryContainer,
- Color? tertiary,
- Color? onTertiary,
- Color? tertiaryContainer,
- Color? onTertiaryContainer,
- Color error = const Color(0xff9b374d),
- Color onError = Colors.black,
- Color? errorContainer,
- Color? onErrorContainer,
- Color background = const Color(0xff121212),
- Color onBackground = Colors.white,
- Color surface = const Color(0xff121212),
- Color onSurface = Colors.white,
- Color? surfaceVariant,
- Color? onSurfaceVariant,
- Color? outline,
- Color? shadow,
- Color? inverseSurface,
- Color? onInverseSurface,
- Color? inversePrimary,
- Color? surfaceTint,
- @Deprecated('Use primary or primaryContainer instead. ' 'This feature was deprecated after v2.6.0-0.0.pre.') Color? primaryVariant = const Color(0xffbe9eff),
- @Deprecated('Use secondary or secondaryContainer instead. ' 'This feature was deprecated after v2.6.0-0.0.pre.') Color? secondaryVariant = const Color(0xff66fff9)}
Create a high contrast ColorScheme based on the dark baseline Material color scheme.
Implementation
const ColorScheme.highContrastDark({
this.brightness = Brightness.dark,
this.primary = const Color(0xffefb7ff),
this.onPrimary = Colors.black,
Color? primaryContainer,
Color? onPrimaryContainer,
this.secondary = const Color(0xff66fff9),
this.onSecondary = Colors.black,
Color? secondaryContainer,
Color? onSecondaryContainer,
Color? tertiary,
Color? onTertiary,
Color? tertiaryContainer,
Color? onTertiaryContainer,
this.error = const Color(0xff9b374d),
this.onError = Colors.black,
Color? errorContainer,
Color? onErrorContainer,
this.background = const Color(0xff121212),
this.onBackground = Colors.white,
this.surface = const Color(0xff121212),
this.onSurface = Colors.white,
Color? surfaceVariant,
Color? onSurfaceVariant,
Color? outline,
Color? shadow,
Color? inverseSurface,
Color? onInverseSurface,
Color? inversePrimary,
Color? surfaceTint,
@Deprecated(
'Use primary or primaryContainer instead. '
'This feature was deprecated after v2.6.0-0.0.pre.'
)
Color? primaryVariant = const Color(0xffbe9eff),
@Deprecated(
'Use secondary or secondaryContainer instead. '
'This feature was deprecated after v2.6.0-0.0.pre.'
)
Color? secondaryVariant = const Color(0xff66fff9),
}) : assert(brightness != null),
assert(primary != null),
assert(onPrimary != null),
assert(secondary != null),
assert(onSecondary != null),
assert(error != null),
assert(onError != null),
assert(background != null),
assert(onBackground != null),
assert(surface != null),
assert(onSurface != null),
_primaryContainer = primaryContainer,
_onPrimaryContainer = onPrimaryContainer,
_secondaryContainer = secondaryContainer,
_onSecondaryContainer = onSecondaryContainer,
_tertiary = tertiary,
_onTertiary = onTertiary,
_tertiaryContainer = tertiaryContainer,
_onTertiaryContainer = onTertiaryContainer,
_errorContainer = errorContainer,
_onErrorContainer = onErrorContainer,
_surfaceVariant = surfaceVariant,
_onSurfaceVariant = onSurfaceVariant,
_outline = outline,
_shadow = shadow,
_inverseSurface = inverseSurface,
_onInverseSurface = onInverseSurface,
_inversePrimary = inversePrimary,
_primaryVariant = primaryVariant,
_secondaryVariant = secondaryVariant,
_surfaceTint = surfaceTint;