Image request not being cancelled when item is disposed
I have a ListView with, say, 400 items. Each item has it's own Image
If I scroll past 100 items (without stopping), then come back to them, these 100 items would have their images downloaded, meaning even when the item was no longer visible, the image request was not cancelled.
There is no callback to recycle an item inside the ListView, and I know it's automatic. But does CachedNetworkImage not cancel it's request when it's been disposed?
At the moment we don't cancel requests indeed.
This consumes a lot of network bandwidth
Is there a way to wrap the widget in a State and cancel the request in dispose?
After many tests with my app, the app crashes sometimes when scrolling through the list. The list is a grid of items, all of them having an image. And when the scroll is just a little fast, the application starts trying to load all the images, and eventually crashes in some cases
exposed A CancelToken let user controller @renefloor