Skip to content

Commit b151394

Browse files
committed
Update changelog and version
1 parent 39e31dc commit b151394

File tree

6 files changed

+52
-68
lines changed

6 files changed

+52
-68
lines changed

packages/go_router_builder/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dependencies:
1313
dev_dependencies:
1414
# ...along with your other dev-dependencies
1515
build_runner: ^2.6.0
16-
go_router_builder: ^3.1.0
16+
go_router_builder: ^3.3.0
1717
```
1818
1919
### Source code

packages/go_router_builder/example/lib/go_relative.dart

Lines changed: 14 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,19 @@ class MyApp extends StatelessWidget {
1818

1919
@override
2020
Widget build(BuildContext context) {
21-
return MaterialApp.router(
22-
routerConfig: _router,
23-
);
21+
return MaterialApp.router(routerConfig: _router);
2422
}
2523
}
2624

2725
/// The route configuration.
28-
final GoRouter _router = GoRouter(
29-
routes: $appRoutes,
30-
);
26+
final GoRouter _router = GoRouter(routes: $appRoutes);
3127
const TypedRelativeGoRoute<DetailsRoute> detailRoute =
3228
TypedRelativeGoRoute<DetailsRoute>(
33-
path: 'details/:detailId',
34-
routes: <TypedRoute<RouteData>>[
35-
TypedRelativeGoRoute<SettingsRoute>(path: 'settings/:settingId'),
36-
],
37-
);
29+
path: 'details/:detailId',
30+
routes: <TypedRoute<RouteData>>[
31+
TypedRelativeGoRoute<SettingsRoute>(path: 'settings/:settingId'),
32+
],
33+
);
3834

3935
@TypedGoRoute<HomeRoute>(
4036
path: '/',
@@ -71,9 +67,7 @@ class DetailsRoute extends RelativeGoRouteData with _$DetailsRoute {
7167
}
7268

7369
class SettingsRoute extends RelativeGoRouteData with _$SettingsRoute {
74-
const SettingsRoute({
75-
required this.settingId,
76-
});
70+
const SettingsRoute({required this.settingId});
7771
final String settingId;
7872

7973
@override
@@ -142,10 +136,7 @@ class DashboardScreen extends StatelessWidget {
142136
/// The details screen
143137
class DetailsScreen extends StatelessWidget {
144138
/// Constructs a [DetailsScreen]
145-
const DetailsScreen({
146-
super.key,
147-
required this.id,
148-
});
139+
const DetailsScreen({super.key, required this.id});
149140

150141
final String id;
151142

@@ -161,9 +152,10 @@ class DetailsScreen extends StatelessWidget {
161152
child: const Text('Go back'),
162153
),
163154
ElevatedButton(
164-
onPressed: () => const SettingsRoute(
165-
settingId: 'SettingsId',
166-
).goRelative(context),
155+
onPressed:
156+
() => const SettingsRoute(
157+
settingId: 'SettingsId',
158+
).goRelative(context),
167159
child: const Text('Go to the Settings screen'),
168160
),
169161
],
@@ -176,10 +168,7 @@ class DetailsScreen extends StatelessWidget {
176168
/// The details screen
177169
class SettingsScreen extends StatelessWidget {
178170
/// Constructs a [SettingsScreen]
179-
const SettingsScreen({
180-
super.key,
181-
required this.id,
182-
});
171+
const SettingsScreen({super.key, required this.id});
183172

184173
final String id;
185174

packages/go_router_builder/example/lib/go_relative.g.dart

Lines changed: 34 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/go_router_builder/example/lib/readme_excerpts.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -402,9 +402,7 @@ class MyGoRouteData extends GoRouteData with _$MyGoRouteData {
402402
// #enddocregion MyShellRouteData
403403

404404
// #docregion relativeRoute
405-
@TypedRelativeGoRoute<DetailsRoute>(
406-
path: 'details',
407-
)
405+
@TypedRelativeGoRoute<DetailsRoute>(path: 'details')
408406
class DetailsRoute extends RelativeGoRouteData with _$DetailsRoute {
409407
const DetailsRoute();
410408

packages/go_router_builder/example/lib/readme_excerpts.g.dart

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/go_router_builder/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: go_router_builder
22
description: >-
33
A builder that supports generated strongly-typed route helpers for
44
package:go_router
5-
version: 3.2.1
5+
version: 3.3.0
66
repository: https://github.com/flutter/packages/tree/main/packages/go_router_builder
77
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+go_router_builder%22
88

0 commit comments

Comments
 (0)