theme_provider 0.6.0
theme_provider: ^0.6.0 copied to clipboard
Easy to use and customizable Theme Provider. This Widget can be used to easily provide a theme controller across the widget tree.
CHANGELOG #
0.6.0 #
- Modify to support Flutter 3.10.
0.5.0 #
- Refactor code base to be null-safe.
- Updated example to be null-safe and include both versions in README.
- Make description field required for an
AppTheme.
0.4.0+1 #
- Updated readme to change the recommended method of wrapping the app with the
ThemeProvider.
0.4.0 #
0.3.3 #
- Added better error messages when description is not provided with theme. #1
- Bumped
shared_preferencesversion
0.3.2 #
- Used
dependOnInheritedWidgetOfExactTypeinstead ofinheritFromWidgetOfExactType. - Modified README
0.3.1 #
- Added ability to add a
onThemeChangedcallback toThemeProviderto be called after each time the theme is switched.
0.3.0 #
- Changed
ThemeProviderto accept a child instead of builder. - Added
ThemeConsumerwidget. - Added
loadThemeOnInitparameter. - Added
providerIdparameter to allow multiple theme providers.
0.2.0+3 - 2019-06-25 #
- Added
onInitCallbackparameter to ThemeProvider. - Modified README
0.2.0+2 - 2019-06-11 #
- Now theme can be saved manually using
ThemeProvider.controllerOf(context).saveThemeToDisk() - Modified README
0.2.0+1 - 2019-06-11 #
- Fixed some typo and updated README and bumped example theme_provider version.
0.2.0 - 2019-06-10 #
- BREAKING CHANGE:
loadThemesOnStartupis no longer supported. UseThemeProvider.controllerOf(context).loadThemeFromDisk()manually to load theme.
0.1.0+1 - 2019-06-09 #
- Fixed some typos in code
0.1.0 - 2019-06-09 #
- BREAKING CHANGE: Removed context parameter from
ThemeProviderbuilder.
0.0.1+10 - 2019-06-09 #
- Added ability to provide default theme id.
- Added ability to persist current theme.
0.0.1+9 - 2019-06-09 #
- Changed
ThemeProvider.themeOf(context)to return the currentAppTheme. - Removed
currentThemeIdfromThemeCommand.
0.0.1+8 - 2019-06-08 #
- Added method to get all themes:
ThemeProvider.controllerOf(context).allThemes - Made theme id required (instead of optional)
- Added optional description field to theme
- Added dialog to switch themes
0.0.1+7 - 2019-06-08 #
- Removed dependency on Provider.
0.0.1+6 - 2019-06-08 #
- Changed directory structure
- Renamed,
ThemeCommand.of(context)toThemeProvider.controllerOf(context)AppThemeOptions.of(context)toThemeProvider.optionsOf(context)
- Added
ThemeProvider.themeOf(context)to get theme.
0.0.1+5 - 2019-06-08 #
- Improved documentation
0.0.1+4 - 2019-06-08 #
- Added default values to themes. Now it is not required
- Added AppTheme.light() and AppTheme.dark() to create dark and light themes easily
- Added command, setTheme(id)
- Improved tests
0.0.1+3 - 2019-06-08 #
- Fix a bug in the example
0.0.1+2 - 2019-06-08 #
- Changed api to pass on theme to help apply the theme to app
0.0.1+1 - 2019-06-08 #
- Fixed major bug relating to ProviderNotFoundError
0.0.1 - 2019-06-08 #
- Added base functionality to add custom theme data
- Added functionality to cycle theme using the command