-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[go _route] fragment parameter added #8232
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
Changes from 12 commits
cc3ac4f
7a641b4
c740df8
2a0cf73
851905b
29d8f6c
3f3adcb
b4c2efc
080a38e
ebb8cdc
b6cfe44
62b6027
b948c71
58a1b12
0816efd
32555fc
0fee133
8dec200
ea4d752
362e23e
fcb1b91
1bcd8b3
0b507b0
6651f6c
1ef08a4
b6546a4
aed6d08
a45bb0d
feae635
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -157,9 +157,13 @@ class GoRouterState { | |
| String name, { | ||
| Map<String, String> pathParameters = const <String, String>{}, | ||
| Map<String, String> queryParameters = const <String, String>{}, | ||
| String? fragment, | ||
| }) { | ||
| // Generate base location using configuration, with optional path and query parameters | ||
| // Then conditionally append fragment if it exists and is not empty | ||
| return _configuration.namedLocation(name, | ||
| pathParameters: pathParameters, queryParameters: queryParameters); | ||
| pathParameters: pathParameters, queryParameters: queryParameters) + | ||
| ((fragment?.isNotEmpty ?? false) ? '#$fragment' : ''); | ||
|
||
| } | ||
|
|
||
| @override | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
additional line?