Skip to content

Commit

Permalink
Merge pull request #3049 from songgnqing/master
Browse files Browse the repository at this point in the history
fix: PopScope swipe back
  • Loading branch information
jonataslaw authored Mar 8, 2024
2 parents b8902cd + becb241 commit 80ee800
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/get_navigation/src/routes/get_transition_mixin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,8 @@ Cannot read the previousTitle for a route that has not yet been installed''',
// If attempts to dismiss this route might be vetoed such as in a page
// with forms, then do not allow the user to dismiss the route with a swipe.
if (route.hasScopedWillPopCallback) return false;
// support [PopScope]
if (route.popDisposition == RoutePopDisposition.doNotPop) return false;
// Fullscreen dialogs aren't dismissible by back swipe.
if (route.fullscreenDialog) return false;
// If we're in an animation already, we cannot be manually swiped.
Expand Down

0 comments on commit 80ee800

Please sign in to comment.