-
Notifications
You must be signed in to change notification settings - Fork 26.7k
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
[go_router]: Focus traversal issues in nested navigators #148405
Comments
Thanks for the report @taloz123 |
After verifying, it appears that the reported behavior is specific to the go_router package. When using standard routes and navigation in Flutter, the issue does not occur. |
Thanks for the update. I was able to replicate this with provided details. stable, master flutter doctor -v
|
Steps to reproduce
The code is ShellRoute example code from go_router.
When I traverse the entire screen and use the bottom navigation to navigate to the next screen by using tabs, the focus is in the previous screen instead of the beginning of the second screen, and as soon as I have completed the previous screen by tab, I am able to move it to the right spot on the second screen.
The initial screen is working correctly and the traversal loop is only present in the current screen and the bottom navigation as needed.
Expected results
After one round of traversal, the focus should remain only on the current screen by tab.
Actual results
When navigating to another screen via tab, the focus should proceed to the top of the screen after one round of tab traversal on the current screen. Instead of getting to the begging to the current screen, the focus is on the previous screen, and the focus of the current screen will be displayed after the previous screen has been passed.
For example, after navigate to screen C from screen B (which has 2 buttons) by tab.
After completing the tab traversal round and pass the button of screen C and the bottom navigation, I did not reach the beginning of the screen C immediately, just after pressing tab 2 times because the focus is on the previous screen.
Code sample
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: