Increase the ImageCache.maxByteSize value
to accommodate larger images.

Adjust your image loading logic to guarantee that
the images fit nicely into the ImageCache.maxByteSize
value of your choosing.

Subclass ImageCache, implement your desired logic,
and create a new binding that serves up your subclass
of ImageCache (see the image_cache.dart source).

Timeline

The old algorithm is no longer supported.

Landed in version: 1.16.3
In stable release: 1.17

References

API documentation:

ImageCache

Relevant issue:

Issue 45643

Relevant PR:

Stopped increasing the cache size to accommodate large images

Other:

ImageCache source