File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,7 @@ class ScaffoldWithNestedNavigation extends StatelessWidget {
10
10
const ScaffoldWithNestedNavigation ({
11
11
Key ? key,
12
12
required this .navigationShell,
13
- }) : super (
14
- key: key ?? const ValueKey <String >('ScaffoldWithNestedNavigation' ));
13
+ }) : super (key: key ?? const ValueKey ('ScaffoldWithNestedNavigation' ));
15
14
final StatefulNavigationShell navigationShell;
16
15
17
16
void _goBranch (int index) {
@@ -29,7 +28,7 @@ class ScaffoldWithNestedNavigation extends StatelessWidget {
29
28
Widget build (BuildContext context) {
30
29
final size = MediaQuery .sizeOf (context);
31
30
if (size.width < 450 ) {
32
- return ScaffoldWithBottomNavBar (
31
+ return ScaffoldWithNavigationBar (
33
32
body: navigationShell,
34
33
currentIndex: navigationShell.currentIndex,
35
34
onDestinationSelected: _goBranch,
@@ -44,8 +43,8 @@ class ScaffoldWithNestedNavigation extends StatelessWidget {
44
43
}
45
44
}
46
45
47
- class ScaffoldWithBottomNavBar extends StatelessWidget {
48
- const ScaffoldWithBottomNavBar ({
46
+ class ScaffoldWithNavigationBar extends StatelessWidget {
47
+ const ScaffoldWithNavigationBar ({
49
48
super .key,
50
49
required this .body,
51
50
required this .currentIndex,
You can’t perform that action at this time.
0 commit comments