2022-04-24 04:08:45 +02:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
2022-11-08 19:00:24 +02:00
|
|
|
import 'package:immich_mobile/shared/models/asset.dart';
|
|
|
|
import 'package:immich_mobile/shared/ui/immich_image.dart';
|
2022-04-24 04:08:45 +02:00
|
|
|
|
|
|
|
class SharedAlbumThumbnailImage extends HookConsumerWidget {
|
2022-11-08 19:00:24 +02:00
|
|
|
final Asset asset;
|
2022-04-24 04:08:45 +02:00
|
|
|
|
2024-01-27 18:14:32 +02:00
|
|
|
const SharedAlbumThumbnailImage({super.key, required this.asset});
|
2022-04-24 04:08:45 +02:00
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context, WidgetRef ref) {
|
|
|
|
return GestureDetector(
|
|
|
|
onTap: () {
|
|
|
|
// debugPrint("View ${asset.id}");
|
|
|
|
},
|
2022-06-18 17:56:36 +02:00
|
|
|
child: Stack(
|
|
|
|
children: [
|
2024-02-13 23:30:32 +02:00
|
|
|
ImmichImage.thumbnail(
|
|
|
|
asset,
|
|
|
|
width: 500,
|
|
|
|
height: 500,
|
|
|
|
),
|
2022-06-18 17:56:36 +02:00
|
|
|
],
|
2022-04-24 04:08:45 +02:00
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|