anlifecycle 3.1.4
anlifecycle: ^3.1.4 copied to clipboard
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.1.4 #
- In LifecycleRegistryStateDelegate, switch the state first and then execute the Observer during destroy.
3.1.3 #
- Fix a state transition check for the
resumed
state.
3.1.2 #
- Convert forEach to for loops for better control and performance.
3.1.1 #
- LifecycleNavigatorObserver.hookMode() adjusts the obfuscation retention for compatibility mode.
3.1.0 #
- Fix _HookOverlayEntry(
LifecycleNavigatorObserver.hookMode()
) passing opaque
3.0.3 #
- Optimize the README content and update the example to version 3.0.
3.0.2 #
- Fix the exception where the observer of LifecycleRegistryState calls remove during destroy.
3.0.1 #
- In the implementation of ILifecycleRegistry, allow calling addLifecycleObserver in the constructor.
3.0.0 #
- Refactored the
registry
content to ensure that the timing of invocations duringregistry
registration is correct.
2.0.4 #
- Fixed the
destroy
error inregisterLifecycleObserverToOwner
.
2.0.3 #
- Removed
findLifecycleObserver
fromLifecycleObserverRegistry
and replaced it with extension compatibility mode. - Fixed a bug in
LifecycleRouteOwner
where route records were incorrect inLifecycleNavigatorObserver.didReplace
. - Delayed the handling of the
resume
event for Rouge to align with the behavior of otherLifecycleOwnerWidget
s (triggered afterwidget.build
). - Added
removeCallback
toLifecycleCallbacks
.
2.0.2 #
- Fixed the issue where the first
start
event was triggered afterbuild
(in versions 2.0.0, 2.0.1); after the fix, thestart
event must occur beforebuild
.
2.0.1 #
addOnDidUpdateWidget
causes performance issues and will be removed in the next version.- Provided
LifecycleObserverRegistryDelegate
to allow customization ofLifecycleObserverRegistryMixin
. - Added
LifecycleObserverRegistryElementMixin
to mix the registry into custom elements.
2.0.0 #
- 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).
1.0.5 #
- Fixed a bug where the
dispose
state was inconsistent with!mounted
, causing page state anomalies.
1.0.4 #
- Corrected the judgment issue when there is scaling in
pageviewItem
. - Fixed the transparency judgment in
routepage
.
1.0.3 #
- Corrected
EventStream
andStateStream
to be synchronously invoked streams. - Fixed the exception where
Register
could not be removed immediately after being added.
1.0.2 #
- Ensured that the first
owner
start event is always triggered beforebuild
.
1.0.1 #
- Optimized the judgment of
onStop
andonPause
inRoutePage
.
1.0.0 #
- Initial version released.