[go_router_builder] Fix the example for default values in the README (#3231)
[go_router_builder] Fix the example for default values in the README
diff --git a/packages/go_router_builder/CHANGELOG.md b/packages/go_router_builder/CHANGELOG.md
index 6f6b6ed..98aa6b7 100644
--- a/packages/go_router_builder/CHANGELOG.md
+++ b/packages/go_router_builder/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 1.1.4
+
+* Fixes the example for the default values in the README.
+
## 1.1.3
* Updates router_config to not passing itself as `extra`.
diff --git a/packages/go_router_builder/README.md b/packages/go_router_builder/README.md
index 03ea846..e7d3a96 100644
--- a/packages/go_router_builder/README.md
+++ b/packages/go_router_builder/README.md
@@ -186,10 +186,10 @@
```dart
class MyRoute extends GoRouteData {
MyRoute({this.queryParameter = 'defaultValue'});
- final String from;
+ final String queryParameter;
@override
- Widget build(BuildContext context, GoRouterState state) => MyScreen(from: from);
+ Widget build(BuildContext context, GoRouterState state) => MyScreen(queryParameter: queryParameter);
}
```
diff --git a/packages/go_router_builder/pubspec.yaml b/packages/go_router_builder/pubspec.yaml
index a5fb5ae..777f6c6 100644
--- a/packages/go_router_builder/pubspec.yaml
+++ b/packages/go_router_builder/pubspec.yaml
@@ -2,7 +2,7 @@
description: >-
A builder that supports generated strongly-typed route helpers for
package:go_router
-version: 1.1.3
+version: 1.1.4
repository: https://github.com/flutter/packages/tree/main/packages/go_router_builder
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+go_router_builder%22