mirror of
https://github.com/immich-app/immich.git
synced 2025-01-02 12:48:35 +02:00
f057fe045e
* refactor(mobile): entities * store entity * refactor: models * remove domain * save all * bad refactor
29 lines
722 B
Dart
29 lines
722 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
|
import 'package:immich_mobile/entities/asset.entity.dart';
|
|
import 'package:immich_mobile/shared/ui/immich_thumbnail.dart';
|
|
|
|
class SharedAlbumThumbnailImage extends HookConsumerWidget {
|
|
final Asset asset;
|
|
|
|
const SharedAlbumThumbnailImage({super.key, required this.asset});
|
|
|
|
@override
|
|
Widget build(BuildContext context, WidgetRef ref) {
|
|
return GestureDetector(
|
|
onTap: () {
|
|
// debugPrint("View ${asset.id}");
|
|
},
|
|
child: Stack(
|
|
children: [
|
|
ImmichThumbnail(
|
|
asset: asset,
|
|
width: 500,
|
|
height: 500,
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|