-
-
Notifications
You must be signed in to change notification settings - Fork 255
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
[bug]: [web] Popscope is not working with RouterService #1080
Comments
Hey, Can you check if that's the expected behaviour in a Flutter app without Stacked. I don't think you're allowed to block the back button, Stacked doesn't do anything different with navigation, we use all the default Flutter navigation functionality just with a better API for the devs to work against. |
This works in Flutter app without stacked. Here is the code which you can test (3 scenarios)
|
Thanks for filing the issue, much appreciated. We will take a look at this. |
Is this fixed? Thank you for amazing package |
I run into this issue too. |
Describe the bug
Popscope and WillPopScope (Deprecated) is not working in browser. Browser back button ignores settings.
Create a new page (web template) and make the following change to the builder. Set the "canPop" to "false" to avoid back navigation from new page to previous page.
Original:
Modified:
To reproduce
stacked create view page2 -t web
Expected behavior
With "canPop" set to false, the browser BACK button should not go back.
Screenshots
No response
Additional Context
Even "WillPopScop" (Deprecated) won't work
The text was updated successfully, but these errors were encountered: