Baseflow / flutter_cache_manager

Generic cache manager for flutter
https://baseflow.com
MIT License
738 stars 427 forks source link

If image (DOES NOT EXIST) AND (maxWidth/maxHeight) ARE set, the stream never closes #439

Open mark8044 opened 6 months ago

mark8044 commented 6 months ago

If image (DOES NOT EXIST) AND (maxWidth/maxHeight) ARE set, the stream never closes and there is endless waiting for the image. Especially a problem when trying to get images in a FutureBuilder or when doing a retry to get the image again, nothing happens as an image streamlistener is already running.

This is in the context of a CachedNetworkImageProvider.

Removing (maxWidth/maxHeight) solves the issue. Then the stream closes and things work as they should.