Bad state: Cannot clone a disposed image
The clone() method of a previously-disposed Image was called. Once an Image object has been disposed, it can no longer be used to create handles, as the underlying data may have been released.
Navigate new screen and back to blur hash screen, I am getting this error
The clone() method of a previously-disposed Image was called. Once an Image object has been disposed, it can no longer be used to create handles, as the underlying data may have been released.
Navigate new screen and back to blur hash screen, I am getting this error
Have you found any workaround?
After installing and applying the flutter_blurhash package, I started encountering this error frequently in my console.
I believe this issue might be related to the usage of Slivers or widget rebuildings.
Any news about this?
Any expectation about this? @Solido
Hey folks, I created a minimal reproducible example for this, check the video below with an easy way to reproduce this:
https://github.com/felipecastrosales/bad_state_poc/assets/59374587/dc2f5316-8d3d-4aa4-8930-2b484ff00f5d
For more details and to see the code example above:
- https://github.com/felipecastrosales/bad_state_poc
Use BlurHashImage instead of. It worked for me
Before:
BlurHash(hash: userProfile.mainPhotoBlurhash)
After:
Image( image: BlurHashImage(userProfile.mainPhotoBlurhash), fit: BoxFit.cover, )
@kienvtqhi can you add evidence in video here?
Use
BlurHashImageinstead of. It worked for meBefore:
BlurHash(hash: userProfile.mainPhotoBlurhash)After:
Image( image: BlurHashImage(userProfile.mainPhotoBlurhash), fit: BoxFit.cover, )