Hi,
For example, when building a ListView that functions as a simple Gallery app (i.e. loads photos from the user's external storage), my app quickly runs out of memory and is killed by the system (Android, in this case) when scrolling through the list. This may be exaggerated by Flutter's image decoding (JPEG) always loading the full-size bitmap into cache? Anyway...
What's the proper way to accomplish this with an arbitrarily large number of Images? I'm currently using ListView.builder to create the Widgets containing the Images. It seems that I'll need to manually load and recycle the Images as necessary as the user scrolls; how do we get (e.g. ScrollController) the scroll position and react to it (e.g. on a fling gesture)? Are there any examples for this?
Thanks!