Skip to content

Commit b68fa74

Browse files
committed
fixes #108437 support for iterable, list and set in for TypedGoRoute
1 parent fdf7083 commit b68fa74

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

packages/go_router/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 5.2.1
2+
3+
- Adds support for Iterables, Lists and Sets in query params for TypedGoRoute. [#108437](https://github.com/flutter/flutter/issues/108437).
4+
15
## 5.2.0
26

37
- Fixes `GoRouterState.location` and `GoRouterState.param` to return correct value.

packages/go_router/lib/src/route_data.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ abstract class GoRouteData {
7676
/// A helper function used by generated code.
7777
///
7878
/// Should not be used directly.
79-
static String $location(String path, {Map<String, String>? queryParams}) =>
79+
static String $location(String path, {Map<String, dynamic>? queryParams}) =>
8080
Uri.parse(path)
8181
.replace(
8282
queryParameters:

packages/go_router/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: go_router
22
description: A declarative router for Flutter based on Navigation 2 supporting
33
deep linking, data-driven routes and more
4-
version: 5.2.0
4+
version: 5.2.1
55
repository: https://github.com/flutter/packages/tree/main/packages/go_router
66
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+go_router%22
77

0 commit comments

Comments
 (0)