Skip clearing flutter image cache since default (current) limit is 100MB and the threshold to clear is 250MB
This commit is contained in:
@@ -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(() {
|
||||
|
||||
Reference in New Issue
Block a user