fix(mobile): readonly mode disable tabs when in landscape mode (#21475)

fix: readonly mode disable bottom tabs when in landscape mode
This commit is contained in:
Brandon Wees 2025-08-31 16:28:29 -05:00 committed by GitHub
parent fd2b7a344c
commit b76d69c0e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -86,7 +86,14 @@ class _TabShellPageState extends ConsumerState<TabShellPage> {
Widget navigationRail(TabsRouter tabsRouter) {
return NavigationRail(
destinations: navigationDestinations
.map((e) => NavigationRailDestination(icon: e.icon, label: Text(e.label), selectedIcon: e.selectedIcon))
.map(
(e) => NavigationRailDestination(
icon: e.icon,
label: Text(e.label),
selectedIcon: e.selectedIcon,
disabled: !e.enabled,
),
)
.toList(),
onDestinationSelected: (index) => _onNavigationSelected(tabsRouter, index, ref),
selectedIndex: tabsRouter.activeIndex,