Easiest way to add support for light and dark theme in your flutter app.
DebugFloatingThemeButton
to Material 3 by @Pavel-Sulimau.DebugFloatingThemeButton
as a public widget for extensions to work with it.debugShowFloatingThemeButton
state using AdaptiveTheme.of(context).setDebugShowFloatingThemeButton(bool)
method.debugShowFloatingThemeButton
using AdaptiveTheme.of(context).debugShowFloatingThemeButton
. useSystem
flag for toggleThemeMode
method to toggle between light, dark only when the flag is set to
false.WidgetsBinding.instance.platformDispatcher
instead of PlatformDispatcher.instance
since its recommended.AdaptiveTheme.of
or CupertinoAdaptiveTheme.of
not creating a dependency on it.fix_data.yaml
for Flutter fix feature for deprecation quick fix suggestion.CupertinoAdaptiveThemeManager
is now deprecated and replaced with AdaptiveThemeManager<CupertinoThemeData>
in
favor of supporting theming for other UI frameworks. (e.g. Fluent UI). This will be removed in v4.0.0
.AdaptiveThemeManager
is now generic typed where the generic type represents the type of the theme data object.
Replace AdaptiveThemeManager
with AdaptiveThemeManager<ThemeData>
AdaptiveThemeManager
is now a mixin instead of an abstract class to reduce code duplication.