Skip to content

Commit 9da805d

Browse files
authored
Update image_cache_manager.dart
1 parent aded0de commit 9da805d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flutter_cache_manager/lib/src/cache_managers/image_cache_manager.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ mixin ImageCacheManager on BaseCacheManager {
8484
maxHeight = (image.height / resizeFactor).round();
8585
}
8686

87-
var resized = await _decodeImage(originalFile.file, width: maxWidth, height: maxHeight, allowUpscaling: true);
87+
var resized = await _decodeImage(originalFile.file, width: maxWidth, height: maxHeight, allowUpscaling: false);
8888
var resizedFile = (await resized.toByteData(format: ui.ImageByteFormat.png))!.buffer.asUint8List();
8989
var maxAge = originalFile.validTill.difference(DateTime.now());
9090

0 commit comments

Comments
 (0)