FColorScheme constructor
const
FColorScheme({
- required Brightness brightness,
- required Color background,
- required Color foreground,
- required Color primary,
- required Color primaryForeground,
- required Color secondary,
- required Color secondaryForeground,
- required Color muted,
- required Color mutedForeground,
- required Color destructive,
- required Color destructiveForeground,
- required Color error,
- required Color errorForeground,
- required Color border,
- double enabledHoveredOpacity = 0.9,
- double disabledOpacity = 0.5,
Creates a FColorScheme.
Note: Unless you are creating a completely new color scheme, modifying FThemes' predefined color schemes is preferred.
Implementation
const FColorScheme({
required this.brightness,
required this.background,
required this.foreground,
required this.primary,
required this.primaryForeground,
required this.secondary,
required this.secondaryForeground,
required this.muted,
required this.mutedForeground,
required this.destructive,
required this.destructiveForeground,
required this.error,
required this.errorForeground,
required this.border,
this.enabledHoveredOpacity = 0.9,
this.disabledOpacity = 0.5,
}) : assert(
0 <= enabledHoveredOpacity && enabledHoveredOpacity <= 1,
'The enabledHoveredOpacity must be between 0 and 1.',
),
assert(0 <= disabledOpacity && disabledOpacity <= 1, 'The disabledOpacity must be between 0 and 1.');