mirror of
https://github.com/immich-app/immich.git
synced 2024-12-25 10:43:13 +02:00
1633af7af6
* introduce Asset as composition of AssetResponseDTO and AssetEntity * filter out duplicate assets (that are both local and remote, take only remote for now) * only allow remote images to be added to albums * introduce ImmichImage to render Asset using local or remote data * optimized deletion of local assets * local video file playback * allow multiple methods to wait on background service finished * skip local assets when adding to album from home screen * fix and optimize delete * show gray box placeholder for local assets * add comments * fix bug: duplicate assets in state after onNewAssetUploaded
26 lines
679 B
Dart
26 lines
679 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
|
import 'package:immich_mobile/shared/models/asset.dart';
|
|
import 'package:immich_mobile/shared/ui/immich_image.dart';
|
|
|
|
class SharedAlbumThumbnailImage extends HookConsumerWidget {
|
|
final Asset asset;
|
|
|
|
const SharedAlbumThumbnailImage({Key? key, required this.asset})
|
|
: super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context, WidgetRef ref) {
|
|
return GestureDetector(
|
|
onTap: () {
|
|
// debugPrint("View ${asset.id}");
|
|
},
|
|
child: Stack(
|
|
children: [
|
|
ImmichImage(asset, width: 500, height: 500),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|