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 2026Releases
latest 38-
3.8.0-rc.109 Aug 2026 pre-releaseNothing published for this version
-
3.7.004 Apr 2026Release notes
Open source →- Fixed the issue where the
testparameter inaddLifecycleObserverToOwnerwas not working. - LifecyclePageView, LifecycleTabBarView add
itemScopeBuilderparameter.
- Fixed the issue where the
-
3.6.228 Dec 2025 -
3.6.109 Dec 2025Release notes
Open source →- When moving the lifecycle state, the state is saved first and then observers are invoked.
-
3.6.006 Dec 2025Release notes
Open source →- Observers in LifecycleRegistryState are executed in their registration order when dispose is called.
-
3.5.121 Oct 2025 -
3.5.026 Sep 2025 -
3.4.111 Sep 2025 -
3.4.007 Sep 2025 -
3.3.001 Sep 2025Release notes
Open source →- visibleRoutes use weak references for routes
- MockLifecycleRegistry rename to LifecycleRegistryMock
- MockLifecycleOwner rename to LifecycleOwnerMock
-
3.2.012 Aug 2025Release notes
Open source →- Add MockLifecycleRegistry and MockLifecycleOwner to assist with testing.
- Add keepAlive parameter to LifecyclePageViewItem, LifecyclePageView, and LifecycleTabBarView.
-
3.1.422 Apr 2025Release notes
Open source →- In LifecycleRegistryStateDelegate, switch the state first and then execute the Observer during destroy.
-
3.1.316 Apr 2025 -
3.1.214 Apr 2025 -
3.1.127 Feb 2025Release notes
Open source →- LifecycleNavigatorObserver.hookMode() adjusts the obfuscation retention for compatibility mode.
-
3.1.001 Jan 2025Release notes
Open source →- Fix _HookOverlayEntry(
LifecycleNavigatorObserver.hookMode()) passing opaque
- Fix _HookOverlayEntry(
-
3.0.301 Sep 2024 -
3.0.223 Aug 2024Release notes
Open source →- Fix the exception where the observer of LifecycleRegistryState calls remove during destroy.
-
3.0.121 Aug 2024Release notes
Open source →- In the implementation of ILifecycleRegistry, allow calling addLifecycleObserver in the constructor.
-
3.0.015 Aug 2024Release notes
Open source →- Refactored the
registrycontent to ensure that the timing of invocations duringregistryregistration is correct.
- Refactored the
-
2.0.412 Aug 2024 -
2.0.309 Jul 2024Release notes
Open source →- Removed
findLifecycleObserverfromLifecycleObserverRegistryand replaced it with extension compatibility mode. - Fixed a bug in
LifecycleRouteOwnerwhere route records were incorrect inLifecycleNavigatorObserver.didReplace. - Delayed the handling of the
resumeevent for Rouge to align with the behavior of otherLifecycleOwnerWidgets (triggered afterwidget.build). - Added
removeCallbacktoLifecycleCallbacks.
- Removed
-
2.0.205 Jun 2024Release notes
Open source →- Fixed the issue where the first
startevent was triggered afterbuild(in versions 2.0.0, 2.0.1); after the fix, thestartevent must occur beforebuild.
- Fixed the issue where the first
-
2.0.117 May 2024Release notes
Open source →addOnDidUpdateWidgetcauses performance issues and will be removed in the next version.- Provided
LifecycleObserverRegistryDelegateto allow customization ofLifecycleObserverRegistryMixin. - Added
LifecycleObserverRegistryElementMixinto mix the registry into custom elements.
-
2.0.005 May 2024Release notes
Open source →- The lifecycle provider now uses
InheritedWidgetto ensure timely notifications of changes. - Added handling for
LifecycleCallbackassociations. - Optimized and adjusted the project structure (which may introduce some compatibility issues).
- The lifecycle provider now uses
-
2.0.0-dev.416 Apr 2024 pre-releaseNothing published for this version
-
2.0.0-dev.302 Apr 2024 pre-releaseNothing published for this version
-
2.0.0-dev.229 Mar 2024 pre-releaseNothing published for this version
-
2.0.0-dev.128 Mar 2024 pre-release withdrawnNothing published for this version
-
1.0.516 Jan 2024Release notes
Open source →- Fixed a bug where the
disposestate was inconsistent with!mounted, causing page state anomalies.
- Fixed a bug where the
-
1.0.425 Dec 2023Release notes
Open source →- Corrected the judgment issue when there is scaling in
pageviewItem. - Fixed the transparency judgment in
routepage.
- Corrected the judgment issue when there is scaling in
-
1.0.4+126 Dec 2023Nothing published for this version
-
1.0.4+215 Jan 2024Nothing published for this version
-
1.0.305 Dec 2023Release notes
Open source →- Corrected
EventStreamandStateStreamto be synchronously invoked streams. - Fixed the exception where
Registercould not be removed immediately after being added.
- Corrected
-
1.0.204 Dec 2023Release notes
Open source →- Ensured that the first
ownerstart event is always triggered beforebuild.
- Ensured that the first
-
1.0.117 Nov 2023 -
1.0.1+125 Nov 2023Nothing published for this version
-
1.0.014 Nov 2023