Skip to content

Commit

Permalink
Merge pull request #882 from Maxr1998/offline-image-aspect-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jmshrv authored Sep 14, 2024
2 parents 1b13e0b + 29c42be commit d522dcf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/services/album_image_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,12 @@ final AutoDisposeProviderFamily<ImageProvider?, AlbumImageRequest>
// This helps keep cache usage by fileImages in check
// Caching smaller at 2X size results in blurriness comparable to
// NetworkImages fetched with display size
out = ResizeImage(out,
width: request.maxWidth! * 2, height: request.maxHeight! * 2);
out = ResizeImage(
out,
width: request.maxWidth! * 2,
height: request.maxHeight! * 2,
policy: ResizeImagePolicy.fit,
);
}
return out;
});
Expand Down

0 comments on commit d522dcf

Please sign in to comment.