theme_provider
Easy to use, customizable and pluggable Theme Provider. This is still a work in progress.
Include in your project
run packages get and import it
Usage
Wrap your material app like this:
To change the theme:
Access current
AppTheme
Access theme data:
Passing Additional Options
This can also be used to pass additional data associated with the theme. Use
eg: If font color on a specific button changes create a class to encapsulate the value.
options
to pass additional data that should be associated with the theme.eg: If font color on a specific button changes create a class to encapsulate the value.
Then provide the options with the theme.
Then the option can be retrieved as,
Additonal Widgets
Theme Cycle Widget
IconButton
to be added to AppBar
to cycle to next theme.Theme Selecting Dialog
SimpleDialog
to let the user select the theme.TODO
- [x] Add next theme command
- [x] Add theme cycling widget
- [x] Add theme selection by theme id
- [x] Add theme select and preview widget
- [ ] Persist current selected theme
- [x] Add unit tests and example
- [x] Remove provider dependency