Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
fluttertpc_get
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
顾海波
2025-02-14 09:20:35 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1fed81823a6b4d2def2e640a99ce61c04ac5ef34
1fed8182
1 parent
5d1690ab
fix onClosed is not called. Add onHidden lifecycle(
https://github.com/jonataslaw…
…/getx/pull/2886/commits)
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
lib/get_navigation/src/router_report.dart
lib/get_state_manager/src/simple/get_controllers.dart
lib/get_navigation/src/router_report.dart
View file @
1fed818
...
...
@@ -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
);
});
//
});
}
}
...
...
lib/get_state_manager/src/simple/get_controllers.dart
View file @
1fed818
...
...
@@ -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
();
}
...
...
Please
register
or
login
to post a comment