memory optimization

This commit is contained in:
mertalev
2026-01-17 00:52:24 -05:00
parent 957ee84636
commit 06467f2c0d
13 changed files with 201 additions and 81 deletions

View File

@@ -24,7 +24,7 @@ class LocalImageRequest extends ImageRequest {
isVideo: assetType == AssetType.video,
);
final frame = await _fromPlatformImage(info);
final frame = await _fromPlatformImage(info, ui.PixelFormat.rgba8888, true);
return frame == null ? null : ImageInfo(image: frame.image, scale: scale);
}