Network images keeps disappearing when scrolling list view in flutter?

Posted by Andre Scott | Updated on

List View creates the widget when it is visible. Thus only the visible child has the image and the one disappearing removes the widget and the one not loaded yet doesn’t fetch the image.

This approach has wonderful benefit of optimal memory utilization. Say you have 1000 of cards with images in List view and showing just 2-3 on the screen at the moment, thus only for the 2-3 visble card image will be loaded and when user will scroll and bring the other cards from the list, it will load images only when visible.

If you want to cache the images, please consider using packageĀ Cached_network_image

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers