Releases: MrIceman/estado
Release 0.0.9
States are completely removed in Estado as they were until now and are called "Events".
This release contains some further changes and introduced also an abstraction over Flutters State
class (you don't have to use it),
which takes care of proper lifecycle handling of your ViewModel. All you have to do now is implement the buildViewModel()
method.
Initial actions, such as fetching data, can be triggered within theonViewModelReady()
callback. Check the README for an example.
Full Changelog: 0.0.7...v0.0.9
Added pre-set Events
This PR includes a default ItemLoadedEvent, in order to reduce boiler plate code
v0.0.6 - Introduced Events, deprecated States
Changed the terminology a bit. ViewModels no longer emit States, but Events.
Also, I removed the Mixin for EventObservers, since they introduce some magic - which is what this project is against.
You have now a clean notify(..) method where you can do a switch on the event that was emitted and then update the state of your UI.
Check the readme for reference