How to parse the json data and display it in Listview in Flutter?

Posted by Editorial Staff | Updated on

Want to parse the json data and display it in Listview in Flutter? The problem is with your parsePhotos function. You have assumed that the JSON file that you are receiving is only a list of photos, but it also has other items inside it. Changing it like this will fix the issue:


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