mirror of
https://github.com/immich-app/immich.git
synced 2025-07-09 03:06:56 -04:00
add albums to dedicated item menu
This commit is contained in:
parent
4d45e36ea0
commit
bee7cd9683
@ -98,6 +98,12 @@ class TabControllerPage extends HookConsumerWidget {
|
||||
padding: const EdgeInsets.all(4),
|
||||
icon: const Icon(Icons.photo_album_outlined),
|
||||
selectedIcon: const Icon(Icons.photo_album),
|
||||
label: const Text('albums').tr(),
|
||||
),
|
||||
NavigationRailDestination(
|
||||
padding: const EdgeInsets.all(4),
|
||||
icon: const Icon(Icons.space_dashboard_outlined),
|
||||
selectedIcon: const Icon(Icons.space_dashboard_rounded),
|
||||
label: const Text('collections').tr(),
|
||||
),
|
||||
],
|
||||
@ -163,7 +169,7 @@ class TabControllerPage extends HookConsumerWidget {
|
||||
// ),
|
||||
// ),
|
||||
NavigationDestination(
|
||||
label: 'collections'.tr(),
|
||||
label: 'albums'.tr(),
|
||||
icon: const Icon(
|
||||
Icons.photo_album_outlined,
|
||||
),
|
||||
@ -174,6 +180,18 @@ class TabControllerPage extends HookConsumerWidget {
|
||||
),
|
||||
),
|
||||
),
|
||||
NavigationDestination(
|
||||
label: 'collections'.tr(),
|
||||
icon: const Icon(
|
||||
Icons.space_dashboard_outlined,
|
||||
),
|
||||
selectedIcon: buildIcon(
|
||||
Icon(
|
||||
Icons.space_dashboard_rounded,
|
||||
color: context.primaryColor,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
@ -185,6 +203,7 @@ class TabControllerPage extends HookConsumerWidget {
|
||||
SearchRoute(),
|
||||
// SharingRoute(),
|
||||
// LibraryRoute(),
|
||||
AlbumsCollectionRoute(),
|
||||
CollectionsRoute(),
|
||||
],
|
||||
duration: const Duration(milliseconds: 600),
|
||||
|
@ -123,6 +123,10 @@ class AppRouter extends RootStackRouter {
|
||||
page: CollectionsRoute.page,
|
||||
guards: [_authGuard, _duplicateGuard],
|
||||
),
|
||||
AutoRoute(
|
||||
page: AlbumsCollectionRoute.page,
|
||||
guards: [_authGuard, _duplicateGuard],
|
||||
),
|
||||
],
|
||||
transitionsBuilder: TransitionsBuilders.fadeIn,
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user