Skip to content

Commit

Permalink
[go_router_builder] Fix the example for default values in the README (f…
Browse files Browse the repository at this point in the history
…lutter#3231)

[go_router_builder] Fix the example for default values in the README
  • Loading branch information
ValentinVignal authored and navaronbracke committed Mar 3, 2023
1 parent a86a198 commit a23e290
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions packages/go_router_builder/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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`.
Expand Down
4 changes: 2 additions & 2 deletions packages/go_router_builder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,10 @@ For query parameters with a **non-nullable** type, you can define a default valu
```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);
}
```

Expand Down
2 changes: 1 addition & 1 deletion packages/go_router_builder/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: go_router_builder
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

Expand Down

0 comments on commit a23e290

Please sign in to comment.