Flutter ListView

ListView is Flutter’s most commonly used scrolling widget. The default constructor takes an explicit list of children. ListView is most appropriate for a small number of widgets. For a large or infinite list, use ListView.builder, which builds its children on demand and only builds those children that are visible.

var data = [ ... ];
ListView.builder(
  itemCount: data.length,
  itemBuilder: (BuildContext context, int index) {
    return Text(data[index]);
  },
)

Search within Codexpedia

Custom Search

Search the entire web

Custom Search