ListView.builder(...)
This widget is used to create items in a list from a list.
We need to create a list
List<String> litems = ["1","2","Third","4"];
2. We create the ListView.builder
body: new ListView.builder
(
itemCount: litems.length,
itemBuilder: (BuildContext ctxt, int index) {
return new Text(litems[index]);
}
)
more info in https://medium.com/@AnInsightfulTechie/flutter-displaying-dynamic-contents-using-listview-builder-f2cedb1a19fb
Last updated