ColorScheme class

Implemented types

Constructors

ColorScheme({required Brightness brightness, required Color background, required Color foreground, required Color card, required Color cardForeground, required Color popover, required Color popoverForeground, required Color primary, required Color primaryForeground, required Color secondary, required Color secondaryForeground, required Color muted, required Color mutedForeground, required Color accent, required Color accentForeground, required Color destructive, required Color destructiveForeground, required Color border, required Color input, required Color ring, required Color chart1, required Color chart2, required Color chart3, required Color chart4, required Color chart5})
const
ColorScheme.fromColors({required Map<String, Color> colors, required Brightness brightness})
ColorScheme.fromMap(Map<String, dynamic> map)

Properties

accent Color
final
accentForeground Color
final
background Color
final
border Color
final
brightness Brightness
final
card Color
final
cardForeground Color
final
chart1 Color
final
chart2 Color
final
chart3 Color
final
chart4 Color
final
chart5 Color
final
chartColors List<Color>
no setteroverride
destructive Color
final
destructiveForeground Color
final
foreground Color
final
hashCode int
The hash code for this object.
no setterinherited
input Color
final
muted Color
final
mutedForeground Color
final
popover Color
final
popoverForeground Color
final
primary Color
final
primaryForeground Color
final
ring Color
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secondary Color
final
secondaryForeground Color
final

Methods

copyWith({Brightness? brightness, Color? background, Color? foreground, Color? card, Color? cardForeground, Color? popover, Color? popoverForeground, Color? primary, Color? primaryForeground, Color? secondary, Color? secondaryForeground, Color? muted, Color? mutedForeground, Color? accent, Color? accentForeground, Color? destructive, Color? destructiveForeground, Color? border, Color? input, Color? ring}) ColorScheme
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toColorMap() Map<String, Color>
toMap() Map<String, String>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

lerp(ColorScheme a, ColorScheme b, double t) ColorScheme

Constants

colorKeys → const Set<String>