mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
feat: favorite action (#19623)
This commit is contained in:
parent
fa5f30d9ca
commit
4c3fcdc745
16 changed files with 238 additions and 56 deletions
|
|
@ -32,7 +32,7 @@ class Thumbnail extends StatelessWidget {
|
|||
);
|
||||
}
|
||||
|
||||
if (asset is Asset) {
|
||||
if (asset is RemoteAsset) {
|
||||
return RemoteThumbProvider(
|
||||
assetId: asset.id,
|
||||
height: size.height,
|
||||
|
|
@ -45,7 +45,8 @@ class Thumbnail extends StatelessWidget {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final thumbHash = asset is Asset ? (asset as Asset).thumbHash : null;
|
||||
final thumbHash =
|
||||
asset is RemoteAsset ? (asset as RemoteAsset).thumbHash : null;
|
||||
final provider = imageProvider(asset: asset, size: size);
|
||||
|
||||
return OctoImage.fromSet(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue