I am developing a language learning quiz app. The person selects a topic (30 words) and I make a request to the server via the API to get a list of translations and transcriptions.
Because it takes a long time to get the data, I want to only get data for a couple of words. The first card is shown, and the second is already loaded. When the user has worked with the first one (swipe it), the second one appears, and the data for the third one is loaded in parallel.
How can you get data like that? All tinder-cards widgets request a stack, i.e. already prepared data. In my case, this is not allowed.
I'm assuming it should look like this: displaying not a stack but only a single card like
Ui with stack is fine, you need to do a little bit with fetch data logic, using Future, List and setState.
Example: when i swipe, the top data object was swiped and new data object was create at the last (begin fetch and seft setState when done).