adaptive_theme library

Classes

AdaptiveTheme
Widget that allows to switch themes dynamically. This is intended to be used above MaterialApp. Example:
CupertinoAdaptiveTheme
Widget that allows to switch themes dynamically. This is intended to be used above CupertinoApp. Example:
DebugFloatingThemeButton
A button that allows to change the theme on the fly. This is like a floating chat bubble kind of button/s which can be moved around or clicked show/hide itself at the right edge of the screen.
DebugFloatingThemeButtonWrapper
InheritedAdaptiveTheme<T extends Object>
An inherited widget that saves provides current mode, theme, dark theme and brightness to its children. This is an internal widget and should not be used directly.

Enums

AdaptiveThemeMode
Represents the mode of the theme.

Mixins

AdaptiveThemeManager<T extends Object>
Entry point to change/modify theme or access theme related information from AdaptiveTheme. An instance of this can be retrieved by calling AdaptiveTheme.of.

Constants

kHandleWidth → const double
kThemeButtonHeight → const double

Typedefs

AdaptiveThemeBuilder = Widget Function(ThemeData light, ThemeData dark)
Builder function to build themed widgets
CupertinoAdaptiveThemeBuilder = Widget Function(CupertinoThemeData theme)
Builder function to build themed widgets
CupertinoAdaptiveThemeManager = AdaptiveThemeManager<CupertinoThemeData>