AdaptiveThemeConfig class
Configuration class for adaptive theme settings
Constructors
- AdaptiveThemeConfig({required AdaptiveThemeMode mode, required ThemeData lightTheme, required ThemeData darkTheme, ThemeData? customTheme, Material3ThemeBuilder? material3Builder, CustomThemeBuilder? customThemeBuilder, Duration transitionDuration = const Duration(milliseconds: 300), Curve transitionCurve = Curves.easeInOut, TimeBasedThemeSettings? timeBasedSettings, bool savePreferences = true, String storageKey = 'adaptive_theme_preferences', bool debug = false, bool useMaterial3 = true})
-
const
Properties
- customTheme → ThemeData?
-
Custom theme data (optional)
final
- customThemeBuilder → CustomThemeBuilder?
-
Custom theme builder (optional, provides advanced theme building capabilities)
final
- darkTheme → ThemeData
-
Dark theme data
final
- debug → bool
-
Whether to show debug information
final
- effectiveCustomTheme → ThemeData?
-
Get the effective custom theme considering Material 3 and custom builders
no setter
- effectiveDarkTheme → ThemeData
-
Get the effective dark theme considering Material 3 and custom builders
no setter
- effectiveLightTheme → ThemeData
-
Get the effective light theme considering Material 3 and custom builders
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- lightTheme → ThemeData
-
Light theme data
final
- material3Builder → Material3ThemeBuilder?
-
Material 3 theme builder (optional, overrides individual themes if provided)
final
- mode → AdaptiveThemeMode
-
The current theme mode
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- savePreferences → bool
-
Whether to save theme preferences
final
- storageKey → String
-
Storage key for preferences
final
- timeBasedSettings → TimeBasedThemeSettings?
-
Time-based theme settings
final
- transitionCurve → Curve
-
Curve for theme transitions
final
- transitionDuration → Duration
-
Duration for theme transitions
final
- useMaterial3 → bool
-
Whether to use Material 3 by default
final
Methods
-
copyWith(
{AdaptiveThemeMode? mode, ThemeData? lightTheme, ThemeData? darkTheme, ThemeData? customTheme, Material3ThemeBuilder? material3Builder, CustomThemeBuilder? customThemeBuilder, Duration? transitionDuration, Curve? transitionCurve, TimeBasedThemeSettings? timeBasedSettings, bool? savePreferences, String? storageKey, bool? debug, bool? useMaterial3}) → AdaptiveThemeConfig - Creates a copy of this config with updated values
-
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.
override