We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b51db65 commit dbcb55fCopy full SHA for dbcb55f
packages/flet/lib/src/controls/canvas.dart
@@ -565,7 +565,7 @@ Future<void> loadCanvasImage(Control shape) async {
565
throw Exception("Missing image source: 'src' or 'src_bytes'");
566
}
567
568
- final codec = await ui.instantiateImageCodec(bytes);
+ final codec = await ui.instantiateImageCodec(bytes, allowUpscaling: false);
569
final frame = await codec.getNextFrame();
570
shape.properties["_image"] = frame.image;
571
shape.updateProperties({"_hash": getImageHash(shape)},
0 commit comments