mirror of
https://github.com/immich-app/immich.git
synced 2025-07-07 10:17:05 -04:00
wip: album collections page
This commit is contained in:
parent
30a3f827a2
commit
424de03204
@ -39,32 +39,20 @@ class AlbumsCollectionPage extends HookConsumerWidget {
|
||||
title: const Text("Albums"),
|
||||
),
|
||||
body: ListView(
|
||||
shrinkWrap: true,
|
||||
children: [
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
const SortButton(),
|
||||
const SizedBox(width: 10),
|
||||
IconButton(
|
||||
icon: Icon(
|
||||
isGrid.value ? Icons.list_rounded : Icons.grid_view_outlined,
|
||||
),
|
||||
onPressed: toggleViewMode,
|
||||
icon: Icon(isGrid.value ? Icons.list : Icons.grid_view),
|
||||
),
|
||||
],
|
||||
),
|
||||
GridView.count(
|
||||
shrinkWrap: true,
|
||||
physics: const ScrollPhysics(),
|
||||
crossAxisCount: 2,
|
||||
mainAxisSpacing: 32,
|
||||
crossAxisSpacing: 32,
|
||||
children: sorted.map((album) {
|
||||
return AlbumThumbnailCard(
|
||||
album: album,
|
||||
onTap: () =>
|
||||
context.pushRoute(AlbumViewerRoute(albumId: album.id)),
|
||||
);
|
||||
}).toList(),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user