-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
flutter/packages
#4636Closed
Copy link
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterp: go_routerThe go_router packageThe go_router packagepackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.r: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
Description
Is there an existing issue for this?
- I have searched the existing issues
- I have read the guide to filing a bug
Use case
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.
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterp: go_routerThe go_router packageThe go_router packagepackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.r: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version