顾海波

fix onClosed is not called. Add onHidden lifecycle(https://github.com/jonataslaw…

…/getx/pull/2886/commits)
... ... @@ -50,9 +50,9 @@ class RouterReportManager<T> {
static void reportRouteDispose(Route disposed) {
if (Get.smartManagement != SmartManagement.onlyBuilder) {
ambiguate(WidgetsBinding.instance)?.addPostFrameCallback((_) {
// ambiguate(WidgetsBinding.instance)?.addPostFrameCallback((_) {
_removeDependencyByRoute(disposed);
});
// });
}
}
... ...
... ... @@ -113,6 +113,9 @@ mixin FullLifeCycleMixin on FullLifeCycleController {
case AppLifecycleState.detached:
onDetached();
break;
case AppLifecycleState.hidden:
onHidden();
break;
}
}
... ... @@ -120,4 +123,5 @@ mixin FullLifeCycleMixin on FullLifeCycleController {
void onPaused();
void onInactive();
void onDetached();
void onHidden();
}
... ...