ListView
Learn about the ListView widget in Flutter, which builds the child widgets one after the other and also makes them scrollable.
We'll cover the following...
Just like Column
and Row
widgets, ListView
widgets are used to arrange the children in a list. The children of ListView
are scrollable by default.
There are two ways to construct a list of widgets in Flutter. One is simple ListView
, which will take the children
property just like Column
or Row
, and the other is ListView.builder
, which will take a function itemBuilder(int index)
. Based on that index, we can build common or custom widgets for each index. For the ...