A new flutter package project.
Base stateful widget that automatically subscribe itself to the app state change events. Also automatically unsubscribe when the widget is disposed.
Getting Started #
You only have to do 3 things:
- Your States have to extend 'BaseState'
- This states have to implement the method 'onStateChanged', responsible of update the widget state and call set state if required.
- When you update your app state, you have to raise the 'StateChanged' event with the new state.
This project purpose is to learn about the framework and make simpler ways to work with it. Feel free to create pull request and create issues.
- To raise events this library uses event_bus