Easiest way to add support for light and dark theme in your flutter app.
isDefault
option from setTheme
method. Default are meant to come from AdaptiveTheme
widget itself.reset
and custom theme options in the example app.AdaptiveTheme
's brightness
and theme
getters.CupertinoAdaptiveTheme
's brightness
and theme
getters.AdaptiveTheme.of(context).toggleThemeMode()
now will sequentially loop through AdaptiveThemeMode.light
, AdaptiveThemeMode.dark
and AdaptiveThemeMode.system
instead of just AdaptiveThemeMode.light
and AdaptiveThemeMode.dark
.shared_preferences
version.ThemePreferences
.AdaptiveTheme.of()
now returns instance of AdaptiveThemeManager
instead of AdaptiveThemeState
to set restrictions for accessing state directly.