File tree 4 files changed +22
-1
lines changed 4 files changed +22
-1
lines changed Original file line number Diff line number Diff line change
1
+ ## 14.8.0
2
+
3
+ - Adds ` preload ` parameter to ` StatefulShellBranchData.$branch ` .
4
+
1
5
## 14.7.2
2
6
3
7
- Add missing ` await ` keyword to ` onTap ` callback in ` navigation.md ` .
Original file line number Diff line number Diff line change @@ -342,13 +342,15 @@ abstract class StatefulShellBranchData {
342
342
List <NavigatorObserver >? observers,
343
343
String ? initialLocation,
344
344
String ? restorationScopeId,
345
+ bool preload = false ,
345
346
}) {
346
347
return StatefulShellBranch (
347
348
routes: routes,
348
349
navigatorKey: navigatorKey,
349
350
observers: observers,
350
351
initialLocation: initialLocation,
351
352
restorationScopeId: restorationScopeId,
353
+ preload: preload,
352
354
);
353
355
}
354
356
}
Original file line number Diff line number Diff line change 1
1
name : go_router
2
2
description : A declarative router for Flutter based on Navigation 2 supporting
3
3
deep linking, data-driven routes and more
4
- version : 14.7.2
4
+ version : 14.8.0
5
5
repository : https://github.com/flutter/packages/tree/main/packages/go_router
6
6
issue_tracker : https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+go_router%22
7
7
Original file line number Diff line number Diff line change @@ -420,6 +420,21 @@ void main() {
420
420
});
421
421
});
422
422
423
+ group ('StatefulShellBranchData' , () {
424
+ test ('Can assign preload' , () {
425
+ final StatefulShellBranch branch = StatefulShellBranchData .$branch (
426
+ preload: true ,
427
+ routes: < RouteBase > [
428
+ GoRouteData .$route (
429
+ path: '/child' ,
430
+ factory : (GoRouterState state) => const _GoRouteDataBuild (),
431
+ ),
432
+ ],
433
+ );
434
+ expect (branch.preload, true );
435
+ });
436
+ });
437
+
423
438
testWidgets (
424
439
'It should redirect using the overridden redirect method' ,
425
440
(WidgetTester tester) async {
You can’t perform that action at this time.
0 commit comments