SfColorScheme class

A material spec colors that can be used to configure the color properties of Syncfusion components.

Constructors

SfColorScheme.m2({required bool useMaterial3, required Brightness brightness, required Color primary, required Color onPrimary, required Color primaryContainer, required Color secondaryContainer, required Color surface, required Color onSurface, required Color surfaceVariant, required Color onSurfaceVariant, required Color inverseSurface, required Color onInverseSurface, required Color outline, required Color outlineVariant, required Color splashColor, required Color hoverColor, required Color highlightColor, required Color valueIndicatorColor, required Color textColor, required Color transparent, required List<Color> palettes})
Creating an argument constructor of SfColorScheme class with M2 design.
SfColorScheme.m3({required bool useMaterial3, required Brightness brightness, required Color primary, required Color onPrimary, required Color primaryContainer, required Color secondaryContainer, required Color surface, required Color onSurface, required Color surfaceVariant, required Color onSurfaceVariant, required Color inverseSurface, required Color onInverseSurface, required Color outline, required Color outlineVariant, required Color splashColor, required Color hoverColor, required Color highlightColor, required Color valueIndicatorColor, required Color textColor, required Color transparent, required Color scrim, required List<Color> palettes})
Creating an argument constructor of SfColorScheme class with M3 design.

Properties

brightness Brightness
A property to decide the brightness of the color scheme.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
highlightColor Color
A color that is used to paint the highlight effect of the components.
getter/setter pair
hoverColor Color
A color that is used to paint the hover effect of the components.
getter/setter pair
inverseSurface MaterialColor
A color that is used to paint the inverse surface color.
getter/setter pair
onInverseSurface MaterialColor
A color that is used to paint the text on the inverse surface color.
getter/setter pair
onPrimary MaterialColor
A color that is used to paint the text on the primary color.
getter/setter pair
onSurface MaterialColor
A color that is used to paint the text on the surface color.
getter/setter pair
onSurfaceVariant MaterialColor
A color that is used to paint the text on the surface variant color.
getter/setter pair
outline Color
A color that is used to paint the outline of the components.
getter/setter pair
outlineVariant MaterialColor
A color that is used to paint the outline of the components.
getter/setter pair
palettes List<Color>
A list of colors that can be used to paint the components.
getter/setter pair
primary MaterialColor
A primary color of the color scheme.
getter/setter pair
primaryContainer MaterialColor
A color that is used to paint the background of the primary color.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrim MaterialColor
A color that is used to paint the scrim color.
getter/setter pair
secondaryContainer MaterialColor
A secondary color of the color scheme.
getter/setter pair
splashColor Color
A color that is used to paint the splash effect of the components.
getter/setter pair
surface MaterialColor
A surface color of the color scheme.
getter/setter pair
surfaceVariant MaterialColor
A color that is used to paint the background of the surface color.
getter/setter pair
textColor Color
A color that is used to paint the text on the components.
getter/setter pair
transparent MaterialColor
A color that is used to paint the transparent color.
getter/setter pair
useMaterial3 bool
A boolean property to decide whether to use material 3 or not.
getter/setter pair
valueIndicatorColor Color
A color that is used to paint the value indicator of the components.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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