an_lifecycle_cancellable
After merging Lifecycle and Cancellable, the toolkit provided in flutter
What this package is like to depend on
Last release 15 days ago
09 Aug 2026
Release timing varies
gaps range from 2 weeks to 4 months
Nearly every release is documented
notes for 33 of 33 stable releases
Nothing withdrawn
no release was ever pulled
2 years old
36 releases · first in 2024
11 releases in the last 12 months
see the full history below
Release timeline
36 releases · May 2024 to Aug 2026
2025
2026
Releases
latest 36-
2.6.109 Aug 2026Release notes
Open source →- Stream.repeatLatest add lazyListen
- Fix cancellable consumption in ValueNotifier.firstWhereValue
- Fix Replaced addPostFrameCallback with runInNextFrameCallback for delayed execution to prevent frame-miss deadlocks and rendering conflicts.
-
2.6.006 Apr 2026Release notes
Open source →- When runWithDelayed = true, the block in ILifecycle.launchWhenLifecycleStateAtLeast is guaranteed to run.
- Stream.repeatLatest support nullable.
- Stream Added the StreamIgnoreNoElement extension
- Stream.bindLifecycle: Support nullable in repeat.
Breaking Changes
- context.remember has been removed, use package remember.
- Adjust the project structure and move it into src.
-
2.6.0-pre.303 Jan 2026 pre-releaseNothing published for this version
-
2.6.0-pre.222 Dec 2025 pre-releaseNothing published for this version
-
2.6.0-pre.130 Nov 2025 pre-releaseNothing published for this version
-
2.5.330 Nov 2025Release notes
Open source →- ILifecycle.makeLiveCancellable removed the assert that checked for states greater than destroyed
-
2.5.212 Nov 2025 -
2.5.101 Nov 2025 -
2.5.012 Oct 2025Release notes
Open source →- Add collectAsState extension function to Stream and Future.
- Added a key parameter to withLifecycleEffect.
-
2.4.311 Sep 2025Release notes
Open source →- Mark remember as deprecated, it will become a standalone library in the future.
-
2.4.207 Sep 2025Release notes
Open source →- Change the manager related to LifecycleObserver to use weak references for ILifecycle.
-
2.4.121 Aug 2025Release notes
Open source →- Add onDispose callback uniformly to rememberXXX.
- ILifecycle.makeLiveCancellable() manager use weak references.
-
2.4.018 Aug 2025Release notes
Open source →- Added a remember extension on BuildContext
- Add CancellableValueNotifier.
-
2.3.306 Jul 2025 -
2.3.229 Jun 2025Release notes
Open source →- Fix the determination of whether the route is active when canceling pushCancellableRoute.
-
2.3.129 Apr 2025 -
2.3.014 Apr 2025Release notes
Open source →- Adjust the parameters of Stream.bindLifecycle.
Breaking Changes
- In Stream.bindLifecycle, The parameter repeatLastOnRestart is deprecated. A new parameter repeatLastOnStateAtLeast. The default value of the state parameter is changed from LifecycleState.started to LifecycleState.created, aligning with the behavior of other bind methods.
-
2.3.0+114 Apr 2025 -
2.2.130 Mar 2025 -
2.2.018 Mar 2025Release notes
Open source →- The repeatOnLifecycle and collectOnLifecycle functions are extended to support error handling for the execution block via a new parameter called ignoreBlockError. By default, ignoreBlockError is set to false, meaning any errors occurring in the block will be reported using FlutterError.reportError.
- In the extension functions withLifecycleEffect and withLifecycleAndDataEffect, if an exception occurs in the execution units, FlutterError.reportError will be called.
- ILifecycle adds new extensions: whenLifecycleStateAtLeast, whenLifecycleStateXXX, whenLifecycleNextEvent, whenLifecycleNextEventXXX. These methods return a Future<Cancellable>, making them convenient for use in asynchronous operations.
-
2.1.006 Mar 2025Release notes
Open source →- Refine the timing checks for the withLifecycle launch methods.
- BuildContext.withLifecycleEffectData will be renamed to BuildContext.withLifecycleAndDataEffect.
- ILifecycle adds a new tickerProvider extension.
- BuildContext adds new extensions: withLifecycleExtData and withLifecycleAndExtDataEffect.
-
2.0.225 Feb 2025 -
2.0.110 Feb 2025 -
2.0.008 Feb 2025Release notes
Open source →- Stream adds extension onData, repeatLatest.
- BuildContext adds extensions withLifecycleEffect, withLifecycleEffectData.
Breaking Changes
- LifecycleExtData is subdivided into LiveExtData and LifecycleRegistryExtData.
- LifecycleExtData will automatically generate a Key based on the Type, and all parameters in the methods will be changed to named parameters.
-
1.1.024 Dec 2024Release notes
Open source →- Upgrading Dependencies.
- lifecycleExtData renamed to extData.
- Added extDataForRegistry.
-
1.0.224 Sep 2024Release notes
Open source →- The newly added findLifecycleOwner can be used to search upward for the specified LifecycleOwner.
-
1.0.121 Aug 2024 -
1.0.015 Aug 2024 -
0.0.703 Aug 2024Release notes
Open source →- Continue to expand the launch series
- Fix reference exception caused by makeLiveCancellable
-
0.0.622 Jul 2024Release notes
Open source →- Continue to expand the launch series
- fix withLifecycleEffect bugs
- fix lifecycleExtData bugs
-
0.0.512 Jul 2024Release notes
Open source →- Postpone the execution of resumed of withLifecycleEffect (wait for the next event loop)
- fix withLifecycleEffect assert judgment error
-
0.0.409 Jul 2024Release notes
Open source →- Migration of Listenable extensions.
- Adding a new launch to the lifecycle (executed only once).
- Added extension lifecycleExtData, which can store data based on the lifecycle and automatically clean it up upon destroy.
-
0.0.4+111 Jul 2024 -
0.0.302 Jun 2024 -
0.0.214 May 2024 -
0.0.114 May 2024