mirror of
https://github.com/immich-app/immich.git
synced 2025-11-27 00:35:16 -05:00
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:
parent
fd2b7a344c
commit
b76d69c0e5
@ -86,7 +86,14 @@ class _TabShellPageState extends ConsumerState<TabShellPage> {
|
|||||||
Widget navigationRail(TabsRouter tabsRouter) {
|
Widget navigationRail(TabsRouter tabsRouter) {
|
||||||
return NavigationRail(
|
return NavigationRail(
|
||||||
destinations: navigationDestinations
|
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(),
|
.toList(),
|
||||||
onDestinationSelected: (index) => _onNavigationSelected(tabsRouter, index, ref),
|
onDestinationSelected: (index) => _onNavigationSelected(tabsRouter, index, ref),
|
||||||
selectedIndex: tabsRouter.activeIndex,
|
selectedIndex: tabsRouter.activeIndex,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user