PackageTrack
Sign in Get early access

an_lifecycle_cancellable

After merging Lifecycle and Cancellable, the toolkit provided in flutter

2.6.1 aymtools/lifecycle_cancellable

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
Release Pre-release

Releases

latest 36
  1. 2.6.1 09 Aug 2026
    Release notes

    重命名 runAfterNextFrameCallbackOrNextEventLoop 为 runInNextFrameCallback

    Open source →
    Release notes
    • 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.
    Open source →
  2. 2.6.0 06 Apr 2026
    Release notes
    • 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.
    Open source →
  3. 2.6.0-pre.3 03 Jan 2026 pre-release

    Nothing published for this version

  4. 2.6.0-pre.2 22 Dec 2025 pre-release

    Nothing published for this version

  5. 2.6.0-pre.1 30 Nov 2025 pre-release

    Nothing published for this version

  6. 2.5.3 30 Nov 2025
    Release notes

    ILifecycle.makeLiveCancellable 移除>destroyed的断言

    Open source →
    Release notes
    • ILifecycle.makeLiveCancellable removed the assert that checked for states greater than destroyed
    Open source →
  7. 2.5.2 12 Nov 2025
    Release notes

    makeLiveCancellable增加对other.cancelled的test

    Open source →
    Release notes
    • ILifecycle.makeLiveCancellable adds availability check for other.
    Open source →
  8. 2.5.1 01 Nov 2025
    Release notes

    修复Lifecycle.whenLifecycleStateResumed的bug

    Open source →
    Release notes
    • Fixed a bug in the Lifecycle.whenLifecycleStateResumed function
    Open source →
  9. 2.5.0 12 Oct 2025
    Release notes
    • Add collectAsState extension function to Stream and Future.
    • Added a key parameter to withLifecycleEffect.
    Open source →
  10. 2.4.3 11 Sep 2025
    Release notes

    将remember标记为过时,未来将形成独立库存在

    Open source →
    Release notes
    • Mark remember as deprecated, it will become a standalone library in the future.
    Open source →
  11. 2.4.2 07 Sep 2025
    Release notes
    • Change the manager related to LifecycleObserver to use weak references for ILifecycle.
    Open source →
  12. 2.4.1 21 Aug 2025
    Release notes
    • Add onDispose callback uniformly to rememberXXX.
    • ILifecycle.makeLiveCancellable() manager use weak references.
    Open source →
  13. 2.4.0 18 Aug 2025
    Release notes
    • Added a remember extension on BuildContext
    • Add CancellableValueNotifier.
    Open source →
  14. 2.3.3 06 Jul 2025
    Release notes
    • Change the listener in Stream.repeatLatest from closeSync to close.
    Open source →
  15. 2.3.2 29 Jun 2025
    Release notes
    • Fix the determination of whether the route is active when canceling pushCancellableRoute.
    Open source →
  16. 2.3.1 29 Apr 2025
    Release notes
    • Upgrade dependencies.
    Open source →
  17. 2.3.0 14 Apr 2025
    Release notes
    • 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.
    Open source →
  18. 2.3.0+1 14 Apr 2025
    Release notes
    • Fix changelog display error.
    Open source →
  19. 2.2.1 30 Mar 2025
    Release notes
    • Fix the bug of repeatLatest done.
    Open source →
  20. 2.2.0 18 Mar 2025
    Release notes
    • 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.
    Open source →
  21. 2.1.0 06 Mar 2025
    Release notes
    • 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.
    Open source →
  22. 2.0.2 25 Feb 2025
    Release notes
    • LifecycleExtData adds a check to verify if it has been destroyed.
    Open source →
  23. 2.0.1 10 Feb 2025
    Release notes
    • Fix the bug in Stream.repeatLatest.
    Open source →
  24. 2.0.0 08 Feb 2025
    Release notes
    • 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.
    Open source →
  25. 1.1.0 24 Dec 2024
    Release notes
    • Upgrading Dependencies.
    • lifecycleExtData renamed to extData.
    • Added extDataForRegistry.
    Open source →
  26. 1.0.2 24 Sep 2024
    Release notes
    • The newly added findLifecycleOwner can be used to search upward for the specified LifecycleOwner.
    Open source →
  27. 1.0.1 21 Aug 2024
    Release notes
    • After upgrading lifecycle to 3.0, some assertions are abnormal
    Open source →
  28. 1.0.0 15 Aug 2024
    Release notes
    • Lifecycle upgraded to 3.0.0
    Open source →
  29. 0.0.7 03 Aug 2024
    Release notes
    • Continue to expand the launch series
    • Fix reference exception caused by makeLiveCancellable
    Open source →
  30. 0.0.6 22 Jul 2024
    Release notes
    • Continue to expand the launch series
    • fix withLifecycleEffect bugs
    • fix lifecycleExtData bugs
    Open source →
  31. 0.0.5 12 Jul 2024
    Release notes
    • Postpone the execution of resumed of withLifecycleEffect (wait for the next event loop)
    • fix withLifecycleEffect assert judgment error
    Open source →
  32. 0.0.4 09 Jul 2024
    Release notes
    • 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.
    Open source →
  33. 0.0.4+1 11 Jul 2024
    Release notes
    • Fix lifecycleExtData automatic cleanup exception
    Open source →
  34. 0.0.3 02 Jun 2024
    Release notes
    • fix bug whenMoreThanState
    Open source →
  35. 0.0.2 14 May 2024
    Release notes
    • export dialog/dialog_ext.dart
    Open source →
  36. 0.0.1 14 May 2024
    Release notes
    • The first version migration is completed
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive