-
-
Notifications
You must be signed in to change notification settings - Fork 405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PopScope not working on web browser back button #1944
Comments
Same here |
I'm also looking for a way to either disable browser back button or at least recognize it and show a warning dialog |
Also experiencing this issue |
Hello @ALL please understand that clicking the browser's back button DOES not trigger a pop event, there for it's not something if you navigate to /path-1 when it comes to disabling/intercepting the browser's back button the short answer is "You can't", that being said there are a couple hacks you can do but none of theme are guaranteed. refer to this link to learn more |
Hi everyone, I'm not sure if my issue was evident in the original post and it seems that it got a bit sidetracked. The PopScope is not triggered when I navigate away from a page that was pushed using |
I think this issue also happens with go_router, and seems they are waiting for a new Flutter release to fix |
I think its a coincidence of go_router having the same issue and its not flutter's fault as it does work when Navigating with |
Hi, PopScope seems to be not working when the back button in the web browser is pressed. It does work when you navigate to the page using
Navigator.push
but notcontext.pushRoute
.Here is the example code:
auto_router.dart:
main.dart:
flutter doctor -v
The text was updated successfully, but these errors were encountered: