Open tomotoshi3 opened 1 year ago
@tomotoshi3 Please provide a completed and minimal reproducible code sample so that we may verify this. Thanks!
Sample code is updated
This issue is reproducible with the latest go_router: ^6.0.0
. Labeling the issue for the team's attention. Thank you!
I'm also facing the same problem.
Any updates to this? This is really an important issue in my view
Once error builder widget is there then i am not able to do context.push or context.go only context.pushReplacement is working
Once error builder widget is there then i am not able to do context.push or context.go only context.pushReplacement is working
I have this same issue
When you push some unknown route
context.push('/someRoute');
errorBuilder widget is shown. But, there is no possibility to pop this error screen using leading icon of AppBar or system back button.This was possible in go_router version 3.1.1.
So, with latest version of go_router there is no possibility to push errorBuilder screen? It behaves like 'go' and not like 'push' because that errorBuilder screen cleans all previous routes stack even if previous there were push and pushNamed routes.
Previously with go_router version 3.1.1 I had:
And stack was working fine. When you press in Details screen button, error screen is shown and you can pop back to details screen. And then back to home screen.
With newer version of the go_router you can't pop back. Same code as previous, only change is additional line in MaterialApp: