I have a list of Future<PostData> that I use to create a preload mechanism for tinder-like swipe feed consumption but I'm running into some issues. In fact, when a card is swiped, I rebuild the card stack using the next Posts that are already loaded in my List<Future<PostData>>.
Thing is, even tho my futures are already completed, I get a single frame of ConnectionState.waiting in my future builder making the UI jitter.
This limitation is documented in the docs:
A side-effect of this is that providing a new but already-completed future to a
FutureBuilderwill result in a single frame in theConnectionState.waitingstate. This is because there is no way to synchronously determine that a Future has already completed.
I was wondering, is there a way to avoid that problem?
Cheers!