mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00: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
1 changed files with 8 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue