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

@@ -12,7 +12,7 @@ class ThumbhashImageRequest extends ImageRequest {
}
final Map<String, int> info = await localImageApi.getThumbhash(thumbhash);
final frame = await _fromPlatformImage(info);
final frame = await _fromPlatformImage(info, ui.PixelFormat.rgba8888, true);
return frame == null ? null : ImageInfo(image: frame.image, scale: scale);
}