flutter_cache_manager icon indicating copy to clipboard operation
flutter_cache_manager copied to clipboard

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

Open mark8044 opened this issue 2 years ago • 1 comments

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.

mark8044 avatar Dec 08 '23 18:12 mark8044

Hello @mark8044, I'm facing the same issue. Were you able to find a solution or a workaround to this while still being able to use the maxWidth/maxHeight properties?

emersonsilva-bees avatar Apr 14 '25 18:04 emersonsilva-bees