optimized_cached_image icon indicating copy to clipboard operation
optimized_cached_image copied to clipboard

Bad State: Stream has already been listened to.

Open jakehockey10 opened this issue 1 year ago • 2 comments

I'm running into the error: Bad State: Stream has already been listened to. when attempting to view an image after the first build. It occurs in the _loadAsync method of _image_provider_io.dart. I was wondering how to diagnose this and how to fix it. Could I get some help getting pointed in the right direction? It seems to behave slightly better if I make the following changes:

image

But I'm not sure if this is appropriate, and I have to leave the page and come back to get the image widget to "try again."

Not sure if it is related or not, but if there are "enough" widgets, I can get the app to throw an out-of-memory exception as well. This current test was putting ~80 image widgets into a GridView.

jakehockey10 avatar Sep 11 '22 20:09 jakehockey10