I have added a few widgets inside the ListView
. So that I can scroll all widgets. Now I required to add one more widget to the ListView
to load the li
In Addition to @Derek Lakin's Answer which worked for me too, it is also required to call setState()
, if you need to update the comments and reload.
var commentWidgets = List();
for (var comment in comments) {
commentWidgets.Add(Text(comment.text)); // TODO: Whatever layout you need foreach widget.
}
setState(() {
});