Skip to content

Commit b3d0773

Browse files
committed
Cleanup ScaffoldWithNestedNavigation
1 parent 0090403 commit b3d0773

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/src/routing/scaffold_with_nested_navigation.dart

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ class ScaffoldWithNestedNavigation extends StatelessWidget {
1010
const ScaffoldWithNestedNavigation({
1111
Key? key,
1212
required this.navigationShell,
13-
}) : super(
14-
key: key ?? const ValueKey<String>('ScaffoldWithNestedNavigation'));
13+
}) : super(key: key ?? const ValueKey('ScaffoldWithNestedNavigation'));
1514
final StatefulNavigationShell navigationShell;
1615

1716
void _goBranch(int index) {
@@ -29,7 +28,7 @@ class ScaffoldWithNestedNavigation extends StatelessWidget {
2928
Widget build(BuildContext context) {
3029
final size = MediaQuery.sizeOf(context);
3130
if (size.width < 450) {
32-
return ScaffoldWithBottomNavBar(
31+
return ScaffoldWithNavigationBar(
3332
body: navigationShell,
3433
currentIndex: navigationShell.currentIndex,
3534
onDestinationSelected: _goBranch,
@@ -44,8 +43,8 @@ class ScaffoldWithNestedNavigation extends StatelessWidget {
4443
}
4544
}
4645

47-
class ScaffoldWithBottomNavBar extends StatelessWidget {
48-
const ScaffoldWithBottomNavBar({
46+
class ScaffoldWithNavigationBar extends StatelessWidget {
47+
const ScaffoldWithNavigationBar({
4948
super.key,
5049
required this.body,
5150
required this.currentIndex,

0 commit comments

Comments
 (0)