feat(mobile): enable zoom of preview images & reuse cached thumbnails (#1049)

This commit is contained in:
Fynn Petersen-Frey 2022-12-04 04:59:39 +01:00 committed by GitHub
parent 99854e90be
commit 83c7434eb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 37 additions and 17 deletions

View file

@ -62,7 +62,7 @@ class ImmichImage extends StatelessWidget {
return CachedNetworkImage(
imageUrl: thumbnailRequestUrl,
httpHeaders: {"Authorization": "Bearer $token"},
cacheKey: 'thumbnail-image-${asset.id}',
cacheKey: getThumbnailCacheKey(asset.remote!),
width: width,
height: height,
// keeping memCacheWidth, memCacheHeight, maxWidthDiskCache and