mirror of
https://github.com/immich-app/immich.git
synced 2025-07-07 18:26:50 -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"),
|
title: const Text("Albums"),
|
||||||
),
|
),
|
||||||
body: ListView(
|
body: ListView(
|
||||||
shrinkWrap: true,
|
|
||||||
children: [
|
children: [
|
||||||
Row(
|
Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
const SortButton(),
|
const SortButton(),
|
||||||
|
const SizedBox(width: 10),
|
||||||
IconButton(
|
IconButton(
|
||||||
|
icon: Icon(
|
||||||
|
isGrid.value ? Icons.list_rounded : Icons.grid_view_outlined,
|
||||||
|
),
|
||||||
onPressed: toggleViewMode,
|
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