-
Notifications
You must be signed in to change notification settings - Fork 30.2k
[go_router_builder] Proposal to improve how we handle extra parameters #117261
Copy link
Copy link
Open
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectc: 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_router_builderThe go_router_builder packageThe go_router_builder packagepackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.team-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework team
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectc: 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_router_builderThe go_router_builder packageThe go_router_builder packagepackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.team-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework team
In the current version of
go_router_builderthis is the only way to handle extra parameters to the route.This comes with some major developer experience drawbacks in my opinion, among which, the biggest are:
$extraThis leads to having roughly the following line every time you need to use the route (which btw wrongly shows a positional argument in the documentation):
Ideally, I would have a positional parameter or be able to have a custom named one.
The purpose of this issue is to discuss potential improvements on the API