AppThemeManager class

Singleton manager class for handling application-wide theme state and persistence.

This class provides:

  • Initialization of supported themes
  • Theme switching functionality
  • Access to current theme data
  • Integration with Flutter Bloc for state management

Constructors

AppThemeManager.new()
Private constructor for singleton implementation
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Static Properties

appThemes List<AppTheme>
Gets the list of available application themes
no setter
initialThemeData ThemeData?
Gets the initial theme data loaded during initialization
no setter
instance AppThemeManager
Gets the singleton instance of AppThemeManager
no setter

Static Methods

changeTheme({required BuildContext context, required String themeKey}) → void
Changes the current application theme
getCurrentTheme({required BuildContext context}) ThemeData?
Gets the current theme data from Bloc state
init({required List<AppTheme> themes}) Future<void>
Initializes the theme manager with supported themes