mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
adapt to more pages
This commit is contained in:
parent
8987b2de17
commit
596a3bd689
17 changed files with 248 additions and 298 deletions
|
|
@ -475,7 +475,7 @@ class _AlbumList extends StatelessWidget {
|
|||
|
||||
final bool isLoading;
|
||||
final String? error;
|
||||
final List<Album> albums;
|
||||
final List<RemoteAlbum> albums;
|
||||
final String? userId;
|
||||
|
||||
@override
|
||||
|
|
@ -555,7 +555,7 @@ class _AlbumList extends StatelessWidget {
|
|||
),
|
||||
),
|
||||
onTap: () => context.router.push(
|
||||
RemoteTimelineRoute(albumId: album.id),
|
||||
RemoteTimelineRoute(album: album),
|
||||
),
|
||||
leadingPadding: const EdgeInsets.only(
|
||||
right: 16,
|
||||
|
|
@ -573,13 +573,24 @@ class _AlbumList extends StatelessWidget {
|
|||
),
|
||||
),
|
||||
)
|
||||
: const SizedBox(
|
||||
: SizedBox(
|
||||
width: 80,
|
||||
height: 80,
|
||||
child: Icon(
|
||||
Icons.photo_album_rounded,
|
||||
size: 40,
|
||||
color: Colors.grey,
|
||||
child: Container(
|
||||
decoration: BoxDecoration(
|
||||
color: context.colorScheme.surfaceContainer,
|
||||
borderRadius:
|
||||
const BorderRadius.all(Radius.circular(16)),
|
||||
border: Border.all(
|
||||
color: context.colorScheme.outline.withAlpha(50),
|
||||
width: 1,
|
||||
),
|
||||
),
|
||||
child: const Icon(
|
||||
Icons.photo_album_rounded,
|
||||
size: 24,
|
||||
color: Colors.grey,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
@ -599,7 +610,7 @@ class _AlbumGrid extends StatelessWidget {
|
|||
required this.error,
|
||||
});
|
||||
|
||||
final List<Album> albums;
|
||||
final List<RemoteAlbum> albums;
|
||||
final String? userId;
|
||||
final bool isLoading;
|
||||
final String? error;
|
||||
|
|
@ -674,14 +685,14 @@ class _GridAlbumCard extends StatelessWidget {
|
|||
required this.userId,
|
||||
});
|
||||
|
||||
final Album album;
|
||||
final RemoteAlbum album;
|
||||
final String? userId;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return GestureDetector(
|
||||
onTap: () => context.router.push(
|
||||
RemoteTimelineRoute(albumId: album.id),
|
||||
RemoteTimelineRoute(album: album),
|
||||
),
|
||||
child: Card(
|
||||
elevation: 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue