jetpack 1.0.2 jetpack: ^1.0.2 copied to clipboard
A set of abstractions, utilities inspired from android Jetpack to help manage state in flutter applications.
1.0.2 #
Fixes #
- Fix ERROR: Concurrent modification during iteration: _Set if LiveData.removeObserver is called during notify
1.0.1 #
Fixes
- Made
context.viewModelProvider.get()
safe to call inStatefulWidget.initState()
and anywhere you can accesscontext
- Removed deprecation for
context.viewModelProvider
as there are valid use cases for it like a GlobalViewModelProvider etc.
1.0.0 #
💫 New
- More optimal
context.getViewModel()
andViewModelProvider.of(context)
methods to acquireViewModel
- Acquiring a
ViewModel
is now safe inStatefulWidget.initState()
⚠️ Deprecated
context.viewModelProvider.get()
- Usecontext.getViewModel()
orViewModelProvider.of(context)
instead
0.1.3 #
💫 New
EventListener
and EventQueue
for communicating events to UI
These events are expected to be used for ephemeral state changes to the UI like showing toasts, dialog etc.
0.1.2 #
Fixes
- Diagram formatting in
viewmodel
documentation
0.1.1 #
💫 New
example
published to pub.dev
0.1.0 #
🚨 Breaking Changes
ViewModelScopeState
->_ViewModelScopeState
💫 New Features
LiveDataListener
for performing UI SideEffects onLiveData
value change
Bug fixes
- Fixed
ViewModel
s not being cleared offViewModelStore
ondispose
(Might not have mattered in terms of application memory usage, since those objects don't have any reference and would be garbage collected)
0.0.1 #
- Initial Release with
ViewModel
andLiveData