PackageTrack
Sign in Get early access

anlifecycle

AnLifecycle draws on lifecycle in androidx to implement lifecycle on Flutter, Developers can sense the LifecycleState under the current context wherever you need it.

3.7.0 506 downloads/mo #798 most downloaded on pub.dev aymtools/lifecycle

What this package is like to depend on

Last release 15 days ago

09 Aug 2026

Release timing varies

gaps range from 8 days to 4 months

Nearly every release is documented

notes for 30 of 33 stable releases

1 version withdrawn

withdrawn after publishing

3 years old

38 releases · first in 2023

10 releases in the last 12 months

see the full history below

Release timeline

38 releases · Nov 2023 to Aug 2026
2024 2025 2026
Release Pre-release Withdrawn

Releases

latest 38
  1. 3.8.0-rc.1 09 Aug 2026 pre-release

    Nothing published for this version

  2. 3.7.0 04 Apr 2026
    Release notes
    • Fixed the issue where the test parameter in addLifecycleObserverToOwner was not working.
    • LifecyclePageView, LifecycleTabBarView add itemScopeBuilder parameter.
    Open source →
  3. 3.6.2 28 Dec 2025
    Release notes
    • Compatible with Flutter 3.0
    Open source →
  4. 3.6.1 09 Dec 2025
    Release notes
    • When moving the lifecycle state, the state is saved first and then observers are invoked.
    Open source →
  5. 3.6.0 06 Dec 2025
    Release notes
    • Observers in LifecycleRegistryState are executed in their registration order when dispose is called.
    Open source →
  6. 3.5.1 21 Oct 2025
    Release notes
    • Code standardization
    Open source →
  7. 3.5.0 26 Sep 2025
    Release notes
    • Adjust all fully visible PageViewItems to be resumed.
    Open source →
  8. 3.4.1 11 Sep 2025
    Release notes
    • Code standardization
    Open source →
  9. 3.4.0 07 Sep 2025
    Release notes
    • LifecycleNavigatorObserver.hookMode adds pageKeepAlive parameter
    Open source →
  10. 3.3.0 01 Sep 2025
    Release notes
    • visibleRoutes use weak references for routes
    • MockLifecycleRegistry rename to LifecycleRegistryMock
    • MockLifecycleOwner rename to LifecycleOwnerMock
    Open source →
  11. 3.2.0 12 Aug 2025
    Release notes
    • Add MockLifecycleRegistry and MockLifecycleOwner to assist with testing.
    • Add keepAlive parameter to LifecyclePageViewItem, LifecyclePageView, and LifecycleTabBarView.
    Open source →
  12. 3.1.4 22 Apr 2025
    Release notes
    • In LifecycleRegistryStateDelegate, switch the state first and then execute the Observer during destroy.
    Open source →
  13. 3.1.3 16 Apr 2025
    Release notes
    • Fix a state transition check for the resumed state.
    Open source →
  14. 3.1.2 14 Apr 2025
    Release notes
    • Convert forEach to for loops for better control and performance.
    Open source →
  15. 3.1.1 27 Feb 2025
    Release notes
    • LifecycleNavigatorObserver.hookMode() adjusts the obfuscation retention for compatibility mode.
    Open source →
  16. 3.1.0 01 Jan 2025
    Release notes
    • Fix _HookOverlayEntry(LifecycleNavigatorObserver.hookMode()) passing opaque
    Open source →
  17. 3.0.3 01 Sep 2024
    Release notes
    • Optimize the README content and update the example to version 3.0.
    Open source →
  18. 3.0.2 23 Aug 2024
    Release notes
    • Fix the exception where the observer of LifecycleRegistryState calls remove during destroy.
    Open source →
  19. 3.0.1 21 Aug 2024
    Release notes
    • In the implementation of ILifecycleRegistry, allow calling addLifecycleObserver in the constructor.
    Open source →
  20. 3.0.0 15 Aug 2024
    Release notes
    • Refactored the registry content to ensure that the timing of invocations during registry registration is correct.
    Open source →
  21. 2.0.4 12 Aug 2024
    Release notes
    • Fixed the destroy error in registerLifecycleObserverToOwner.
    Open source →
  22. 2.0.3 09 Jul 2024
    Release notes
    • Removed findLifecycleObserver from LifecycleObserverRegistry and replaced it with extension compatibility mode.
    • Fixed a bug in LifecycleRouteOwner where route records were incorrect in LifecycleNavigatorObserver.didReplace.
    • Delayed the handling of the resume event for Rouge to align with the behavior of other LifecycleOwnerWidgets (triggered after widget.build).
    • Added removeCallback to LifecycleCallbacks.
    Open source →
  23. 2.0.2 05 Jun 2024
    Release notes
    • Fixed the issue where the first start event was triggered after build (in versions 2.0.0, 2.0.1); after the fix, the start event must occur before build.
    Open source →
  24. 2.0.1 17 May 2024
    Release notes
    • addOnDidUpdateWidget causes performance issues and will be removed in the next version.
    • Provided LifecycleObserverRegistryDelegate to allow customization of LifecycleObserverRegistryMixin.
    • Added LifecycleObserverRegistryElementMixin to mix the registry into custom elements.
    Open source →
  25. 2.0.0 05 May 2024
    Release notes
    • The lifecycle provider now uses InheritedWidget to ensure timely notifications of changes.
    • Added handling for LifecycleCallback associations.
    • Optimized and adjusted the project structure (which may introduce some compatibility issues).
    Open source →
  26. 2.0.0-dev.4 16 Apr 2024 pre-release

    Nothing published for this version

  27. 2.0.0-dev.3 02 Apr 2024 pre-release

    Nothing published for this version

  28. 2.0.0-dev.2 29 Mar 2024 pre-release

    Nothing published for this version

  29. 2.0.0-dev.1 28 Mar 2024 pre-release withdrawn

    Nothing published for this version

  30. 1.0.5 16 Jan 2024
    Release notes
    • Fixed a bug where the dispose state was inconsistent with !mounted, causing page state anomalies.
    Open source →
  31. 1.0.4 25 Dec 2023
    Release notes
    • Corrected the judgment issue when there is scaling in pageviewItem.
    • Fixed the transparency judgment in routepage.
    Open source →
  32. 1.0.4+1 26 Dec 2023

    Nothing published for this version

  33. 1.0.4+2 15 Jan 2024

    Nothing published for this version

  34. 1.0.3 05 Dec 2023
    Release notes
    • Corrected EventStream and StateStream to be synchronously invoked streams.
    • Fixed the exception where Register could not be removed immediately after being added.
    Open source →
  35. 1.0.2 04 Dec 2023
    Release notes
    • Ensured that the first owner start event is always triggered before build.
    Open source →
  36. 1.0.1 17 Nov 2023
    Release notes
    • Optimized the judgment of onStop and onPause in RoutePage.
    Open source →
  37. 1.0.1+1 25 Nov 2023

    Nothing published for this version

  38. 1.0.0 14 Nov 2023
    Release notes
    • Initial version released.
    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