Skip to content

Commit b76d69c

Browse files
authored
fix(mobile): readonly mode disable tabs when in landscape mode (#21475)
fix: readonly mode disable bottom tabs when in landscape mode
1 parent fd2b7a3 commit b76d69c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

mobile/lib/pages/common/tab_shell.page.dart

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,14 @@ class _TabShellPageState extends ConsumerState<TabShellPage> {
8686
Widget navigationRail(TabsRouter tabsRouter) {
8787
return NavigationRail(
8888
destinations: navigationDestinations
89-
.map((e) => NavigationRailDestination(icon: e.icon, label: Text(e.label), selectedIcon: e.selectedIcon))
89+
.map(
90+
(e) => NavigationRailDestination(
91+
icon: e.icon,
92+
label: Text(e.label),
93+
selectedIcon: e.selectedIcon,
94+
disabled: !e.enabled,
95+
),
96+
)
9097
.toList(),
9198
onDestinationSelected: (index) => _onNavigationSelected(tabsRouter, index, ref),
9299
selectedIndex: tabsRouter.activeIndex,

0 commit comments

Comments
 (0)