From b76d69c0e542cb4dd212e661cb8a8933cd1e27a8 Mon Sep 17 00:00:00 2001 From: Brandon Wees Date: Sun, 31 Aug 2025 16:28:29 -0500 Subject: [PATCH] fix(mobile): readonly mode disable tabs when in landscape mode (#21475) fix: readonly mode disable bottom tabs when in landscape mode --- mobile/lib/pages/common/tab_shell.page.dart | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mobile/lib/pages/common/tab_shell.page.dart b/mobile/lib/pages/common/tab_shell.page.dart index 41b01ad3a3..1ecb24d465 100644 --- a/mobile/lib/pages/common/tab_shell.page.dart +++ b/mobile/lib/pages/common/tab_shell.page.dart @@ -86,7 +86,14 @@ class _TabShellPageState extends ConsumerState { 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,