mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
fix(mobile): blurry memory photos (#6734)
* fix(mobile): blurry memory photos * better naming and performance
This commit is contained in:
parent
dd9b08dafe
commit
9e1d358168
8 changed files with 143 additions and 138 deletions
|
|
@ -161,7 +161,7 @@ class GalleryViewerPage extends HookConsumerWidget {
|
|||
|
||||
Iterable<ImageProvider> allImageProviders(Asset asset) sync* {
|
||||
if (ImmichImage.useLocal(asset)) {
|
||||
yield ImmichImage.localThumbnailProvider(asset);
|
||||
yield ImmichImage.localImageProvider(asset);
|
||||
yield localOriginalProvider(asset);
|
||||
} else {
|
||||
yield ImmichImage.remoteThumbnailProvider(asset, webp, header);
|
||||
|
|
@ -787,7 +787,7 @@ class GalleryViewerPage extends HookConsumerWidget {
|
|||
final a = loadAsset(index);
|
||||
if (ImmichImage.useLocal(a)) {
|
||||
return Image(
|
||||
image: ImmichImage.localThumbnailProvider(a),
|
||||
image: ImmichImage.localImageProvider(a),
|
||||
fit: BoxFit.contain,
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue