Skip to content
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

Got an error when navigation back web button with nested route #1973

Closed
duymanhit opened this issue Jun 7, 2024 · 5 comments
Closed

Got an error when navigation back web button with nested route #1973

duymanhit opened this issue Jun 7, 2024 · 5 comments

Comments

@duymanhit
Copy link

My flutter version is 3.22.2. From route A, I navigate to nested route nested-A, then continue to navigate to route B. When I go back from B by the web back button, I get an Error:

Assertion failed: file:///C:/flutter/packages/flutter/lib/src/widgets/navigator.dart:3315:14
!popResult
is not true
@rsegecin
Copy link

rsegecin commented Jun 8, 2024

same here. The browser navigator back button throws me this same error !popResult is not true, but it works if I haven't visited other pages in AutoRouter(). Navigating with Navigator.pop(context) or context.router.maybePop() it pops the stack without a problem. Using AutoTabsScaffold the browser's back button also works without a problem.

@webIntegral
Copy link

Same here on Android. Worked after moving to auto_route: ^7.9.0.

@rsegecin
Copy link

rsegecin commented Jun 12, 2024

I'm working with auto_route: ^8.1.3, flutter 3.19.6

@Milad-Akarie
Copy link
Owner

@duymanhit should be fixed in the latest version, Thanks for reporting.

@duymanhit
Copy link
Author

@Milad-Akarie Thank you so much. I really appreciate your effort

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants