How to use async/HTTP data to return child widgets in an IndexedWidgetBuilder?

Posted by Jennifer | Updated on

Want to use async/HTTP data to return child widgets in an IndexedWidgetBuilder? You can wait for asynchronous computations using a FutureBuilder. I’d probably change your PostPreview to take a Future as a constructor argument and put the FutureBuilder there, but if you want to leave PostPreview as-is, here’s how to modify your itemBuilder.


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

Related Questions & Answers