Skip to content

Commit fc77f5b

Browse files
committed
refactor: Remove adaptive navigation configuration
- Removed unused code - Simplified scaffold config
1 parent 03380aa commit fc77f5b

File tree

2 files changed

+2
-20
lines changed

2 files changed

+2
-20
lines changed

lib/app/view/app_shell.dart

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ class AppShell extends StatelessWidget {
4242
final l10n = context.l10n;
4343

4444
return AdaptiveScaffold(
45+
useDrawer: false,
4546
// Use the index from the navigationShell to sync the selected destination.
4647
selectedIndex: navigationShell.currentIndex,
4748
// Callback when a destination is selected.
@@ -71,25 +72,6 @@ class AppShell extends StatelessWidget {
7172
// The body displays the widget tree for the currently selected branch.
7273
// The [NavigationShell] widget handles building the appropriate page.
7374
body: (_) => navigationShell,
74-
75-
// Optional: Configure small screen navigation type (defaults to bottomNav)
76-
// smallBreakpoint: const WidthPlatformBreakpoint(end: 700),
77-
// smallBuilder: (_, __) => AdaptiveScaffold.standardBottomNavigationBar(
78-
// destinations: destinations,
79-
// ),
80-
81-
// Optional: Configure medium screen navigation type (defaults to navRail)
82-
// mediumBreakpoint: const WidthPlatformBreakpoint(begin: 700, end: 1000),
83-
// mediumBuilder: (_, __, ___) => AdaptiveScaffold.standardNavigationRail(
84-
// destinations: destinations,
85-
// // leading: const Icon(Icons.menu), // Example leading widget
86-
// ),
87-
88-
// Optional: Configure large screen navigation type (defaults to drawer)
89-
// largeBreakpoint: const WidthPlatformBreakpoint(begin: 1000),
90-
// largeBuilder: (_, __, ___) => AdaptiveScaffold.standardNavigationDrawer(
91-
// destinations: destinations,
92-
// ),
9375
);
9476
}
9577
}

pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ packages:
170170
source: hosted
171171
version: "5.8.0+1"
172172
dio_web_adapter:
173-
dependency: "direct main"
173+
dependency: transitive
174174
description:
175175
name: dio_web_adapter
176176
sha256: "7586e476d70caecaf1686d21eee7247ea43ef5c345eab9e0cc3583ff13378d78"

0 commit comments

Comments
 (0)