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 []})
-
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
-