theme_provider library Null safety

Classes

AppTheme
Main App theme object. [...]
AppThemeOptions
Interface to use when creating an app theme option class.
CycleThemeIconButton
Simple IconButton which cycles themes when pressed. Use as a descendant of ThemeProvider.
ThemeConsumer
Wrap a widget to use the theme of the closest app theme of the ThemeProvider. If you have multiple screens, wrap each entry point with this widget.
ThemeController
Object which controls the behavior of the theme. This is the object provided through the widget tree. [...]
ThemeDialog
Ready-made SimpleDialog that gives the option to change theme.
ThemeProvider
Wrap MaterialApp in ThemeProvider to get theme functionalities. You may wrap separate parts of the app with multiple ThemeProviders to use multiple theme sections across the app.

Typedefs

ColorBuilderByAppTheme = Color Function(AppTheme theme)
Gives a AppTheme and builds a Color. [...]
ThemeChanged = void Function(AppTheme oldTheme, AppTheme newTheme)
ThemeControllerHandler = void Function(ThemeController controller, Future<String?> previouslySavedThemeFuture)
Handler which provides the activated controller.