You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
go_router should allow setting requestFocus on navigator. #129581
We are building an app that redirects to keep a muliselect textbox in sync with the URL. This is like in iMessage where you can enter names in a to box and the feed is rendered below. GoRouter is stealing focus every time we redirect. Navigator has a requestFocus property which can be used to disable this, but there is no way too hook into the navigator creation in go_router.
Proposal
Add a requestFocus property to GoRouter which is passed to the Navigator constructor in _buildNavigator. We have verified by forking that setting this property to false solves the problem.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
go_router should allow setting requestFocus (#4636)
github-actions commentedon Aug 24, 2023
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.go_router should allow setting requestFocus (flutter#4636)
go_router should allow setting requestFocus (flutter#4636)