2022-04-24 04:08:45 +02:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
2024-05-01 04:36:40 +02:00
|
|
|
import 'package:immich_mobile/entities/asset.entity.dart';
|
2024-05-07 06:04:21 +02:00
|
|
|
import 'package:immich_mobile/widgets/common/immich_thumbnail.dart';
|
2022-04-24 04:08:45 +02:00
|
|
|
|
|
|
|
class SharedAlbumThumbnailImage extends HookConsumerWidget {
|
2022-11-08 18:00:24 +01:00
|
|
|
final Asset asset;
|
2022-04-24 04:08:45 +02:00
|
|
|
|
2024-01-27 17:14:32 +01: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-27 16:51:19 +01:00
|
|
|
ImmichThumbnail(
|
|
|
|
asset: asset,
|
2024-02-13 22:30:32 +01:00
|
|
|
width: 500,
|
|
|
|
height: 500,
|
|
|
|
),
|
2022-06-18 17:56:36 +02:00
|
|
|
],
|
2022-04-24 04:08:45 +02:00
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|