QudsTheme class

Control the theme of the app

Constructors

QudsTheme.new()

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

darkTheme ThemeData?
Customize the dark theme of the app
getter/setter pair
lightTheme ThemeData?
Customize the light theme of the app
getter/setter pair
provider QudsThemeProvider
An instance of the QudsThemeProvider class to control the theme of the app
getter/setter pair

Static Methods

initialize({ThemeData? lightThemeData, ThemeData? darkThemeData}) → void
Initialize the theme control of the app
showThemesSelectionBorderSheet(BuildContext context, {bool autoSave = true, VoidCallback? onChanged}) → void
Show a bottom sheet with ability to change the app theme onChanged A callback function that fired when the app theme is changed Usually used to save the new theme preferences
toggleTheme({VoidCallback? onChanged}) → void
Toggle the two themes (light & dark) of the app