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
N0Noorz
2022-10-25 12:34:40 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2022-10-25 12:34:40 +0800
Commit
7479982b2eb137352a2ea4d3491686eae718d28b
7479982b
1 parent
97d045fe
fix: on backbutton press always close the app
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
lib/get_navigation/src/routes/get_router_delegate.dart
lib/get_navigation/src/routes/get_router_delegate.dart
View file @
7479982
...
...
@@ -784,12 +784,13 @@ class GetDelegate extends RouterDelegate<RouteDecoder>
//Returning false will cause the entire app to be popped.
final
wasPopup
=
await
handlePopupRoutes
(
result:
result
);
if
(
wasPopup
)
return
true
;
final
_popped
=
await
_pop
(
popMode
??
backButtonPopMode
,
result
);
notifyListeners
();
if
(
_popped
!=
null
)
{
//emulate the old pop with result
if
(
_canPop
(
popMode
??
backButtonPopMode
))
{
await
_pop
(
popMode
??
backButtonPopMode
,
result
);
notifyListeners
();
return
true
;
}
return
false
;
}
...
...
Please
register
or
login
to post a comment