NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev
pub.dev
A package for managing ViewModel that depends on anlifecycle. Similar to Androidx ViewModel.
Latest stable
3.8.1
Last release 1 months ago
11 Oct 2026
Release timing varies
gaps range from 1 weeks to 4 months
Nearly every release is documented
notes for 23 of 23 stable releases
Nothing withdrawn
no release was ever pulled
2 years old
25 releases · first in 2024
Drag across the ruler to compare, or tap a release to open it.
* Upgrading Dependencies.
Deprecated: Marked the onCreate lifecycle method as deprecated due to naming ambiguity ( users frequently confused whether the ViewModel was *actively…
ViewModel.useHostLifecycle now supports custom onCleared state handling.onCreate lifecycle method as deprecated due to naming ambiguity (
users frequently confused whether the ViewModel was actively creating or already created). It
will be completely removed in a future major release.onCreate to the newly
introduced onCreated method.Your coding agent can read these notes before it upgrades. Set up the MCP server →
Added ViewModelCallbacks to observe the ViewModel lifecycle.
AsyncData migrated to the an_async_data package.
Nothing published for this version
* Update readme.
Added ViewModel.useHostLifecycle
* Code standardization
Optimize the search efficiency of ViewModelProvider
ViewModelProvider.getOrCreate is deprecated, please use getOrCreateViewModel instead.
优化_MergingValueNotifier的清理时机
优化_MergingValueNotifier的清理时机
* Upgrading Dependencies.
RefViewModelProvider now supports handling viewModelStore removal.
Fix the bug in the ViewModel extension viewModels.
Fix the bug when viewModelProviderProducer is null.
* Adjust example
Add onCreate method to ViewModel, called after the ViewModel is created.
Fix the bug of clearing the ViewModel when removing from ViewModelStore.
Print logs for ViewModel creation and cleanup in non-release mode.
* Upgrading Dependencies.
Add more proactive notifications to valueNotifierStreamXXX when notifyWhenEquals=true.
BuildContext.withLifecycleAndViewModelEffect allows executing lifecycle-related functions based on the current context and ViewModel.
Added makeCloseable to provide cancelable based on viewmodel lifecycle.
Nothing published for this version
Migrate from an_lifecycle_viewmodel.
One column per month.