Skip clearing flutter image cache since default (current) limit is 100MB and the threshold to clear is 250MB

This commit is contained in:
ashilkn
2025-08-25 09:20:08 +05:30
parent a856a82249
commit 0da3dc5084

View File

@@ -432,11 +432,6 @@ class _ThumbnailWidgetState extends State<ThumbnailWidget> {
}
void _cacheAndRender(ImageProvider<Object> imageProvider) {
if (imageCache.currentSizeBytes > 256 * 1024 * 1024) {
_logger.info("Clearing image cache");
imageCache.clear();
imageCache.clearLiveImages();
}
precacheImage(imageProvider, context).then((value) {
if (mounted) {
setState(() {