title: Load phone's gallery as fast as native IOS in Flutter without OOM
body: <p>I am trying to load the phone's gallery (with pagination) in a <code>GridView.builder</code> widget.</p>
  <p>Here is the <a href="https://github.com/CaiJingLong/flutter_photo_manager/issues/579" rel="nofollow noreferrer">issue</a> i have created using the <code>photo_manager</code> package.<br />
  I have got some help and it made me think about a possible solution (see my last comment on the issue).</p>
  <p>I would like to be able to load the assets without blinking or white page.<br />
  On IOS native it's veeery fast and smooth, i want to achieve the same in Flutter.</p>
  <p>You will find all the pieces of code i have made in the github link above. I have managed to do so using a <code>Map</code> object in memory but i need to improve the algorithm to not be in OOM.</p>
  <p>Solutions wanted (one or the other) :</p>
  <ul>
  <li>A simple way to do this, load the phone's gallery as fast as the native IOS into a <code>GridView</code>, no matter which package is used the time it's working.</li>
  <li>An improvement of my currently poor algorithm that would keep for example the 15 assets above the current one, 15 assets below in memory and during the scroll, keep updating these values to move the range around the current position in the list.</li>
  </ul>
  <p>Please let me know if this is not clear enough, as a reminder please have a look at my last big comment on this <a href="https://github.com/CaiJingLong/flutter_photo_manager/issues/579" rel="nofollow noreferrer">issue</a>.</p>