I noticed that the ListView.builder
is still using the articles variable at the end, should be using the response from the future builder?
1 Like
Thanks for spotting that.
Yes, youβre correct.
I missed changing those parts.
The ListView
should use the data from the snapshot.
So it should look like this:
return ListView.builder(
itemCount: snapshot.data!.length,
itemBuilder: (BuildContext context, int index) {
return ArticleCard(article: snapshot.data[index]);
},
);
Added this to the author note and would update the download materials in coming days.
Thanks once again :]