anlifecycle 3.0.1 anlifecycle: ^3.0.1 copied to clipboard
AnLifecycle draws on lifecycle in androidx to implement lifecycle on Flutter.
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.