ColorTheme class

Constructors

ColorTheme({ThemeMode? themeMode, ThemeColor<Color>? green, ThemeColor<Color>? blue, ThemeColor<Color>? red, ThemeColor<Color>? yellow, ThemeColor<Color>? purple, ThemeColor<Color>? pink, ColorThemeConfig? appbar, ColorThemeConfig? base, ColorThemeConfig? background, ColorThemeConfig? bottom, ColorThemeConfig? dialog, ColorThemeConfig? divider, ColorThemeConfig? icon, ColorThemeConfig? scaffold, ColorThemeConfig? shadow, ColorThemeConfig? surface, ColorThemeConfig? text, Iterable<ColorThemeData> colors = const [], GradientThemeConfig? appbarGradient, GradientThemeConfig? baseGradient, GradientThemeConfig? backgroundGradient, GradientThemeConfig? bottomGradient, GradientThemeConfig? dialogGradient, GradientThemeConfig? dividerGradient, GradientThemeConfig? iconGradient, GradientThemeConfig? scaffoldGradient, GradientThemeConfig? shadowGradient, GradientThemeConfig? surfaceGradient, GradientThemeConfig? textGradient, Iterable<GradientThemeData> gradients = const []})

Properties

appbar ColorThemeConfig?
no setter
appbarGradient GradientThemeConfig?
no setter
background ColorThemeConfig?
no setter
backgroundGradient GradientThemeConfig?
no setter
base ColorThemeConfig?
no setter
baseGradient GradientThemeConfig?
no setter
blue ThemeColor<Color>
final
bottom ColorThemeConfig?
no setter
bottomGradient GradientThemeConfig?
no setter
dialog ColorThemeConfig?
no setter
dialogGradient GradientThemeConfig?
no setter
divider ColorThemeConfig?
no setter
dividerGradient GradientThemeConfig?
no setter
green ThemeColor<Color>
final
hashCode int
The hash code for this object.
no setterinherited
icon ColorThemeConfig?
no setter
iconGradient GradientThemeConfig?
no setter
pink ThemeColor<Color>
final
purple ThemeColor<Color>
final
red ThemeColor<Color>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaffold ColorThemeConfig?
no setter
scaffoldGradient GradientThemeConfig?
no setter
shadow ColorThemeConfig?
no setter
shadowGradient GradientThemeConfig?
no setter
surface ColorThemeConfig?
no setter
surfaceGradient GradientThemeConfig?
no setter
text ColorThemeConfig?
no setter
textGradient GradientThemeConfig?
no setter
themeMode ThemeMode?
final
yellow ThemeColor<Color>
final

Methods

createInstance() → void
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

Static Properties

i ColorTheme
no setter

Static Methods

colorOf(String name) ColorThemeConfig?
gradientOf(String name) GradientThemeConfig?
init({ThemeMode? themeMode, ThemeColor<Color>? green, ThemeColor<Color>? blue, ThemeColor<Color>? red, ThemeColor<Color>? yellow, ThemeColor<Color>? purple, ThemeColor<Color>? pink, ColorThemeConfig? appbar, ColorThemeConfig? base, ColorThemeConfig? background, ColorThemeConfig? bottom, ColorThemeConfig? dialog, ColorThemeConfig? divider, ColorThemeConfig? icon, ColorThemeConfig? scaffold, ColorThemeConfig? shadow, ColorThemeConfig? surface, ColorThemeConfig? text, Iterable<ColorThemeData> colors = const [], GradientThemeConfig? appbarGradient, GradientThemeConfig? baseGradient, GradientThemeConfig? backgroundGradient, GradientThemeConfig? bottomGradient, GradientThemeConfig? dialogGradient, GradientThemeConfig? dividerGradient, GradientThemeConfig? iconGradient, GradientThemeConfig? scaffoldGradient, GradientThemeConfig? shadowGradient, GradientThemeConfig? surfaceGradient, GradientThemeConfig? textGradient, Iterable<GradientThemeData> gradients = const []}) → void
isDarkMode(BuildContext context) bool