What is the alternative to RecyclerView in Flutter?

user3924438 picture user3924438 · Jun 20, 2018 · Viewed 16.6k times · Source

What is the alternative to Recycle view in flutter I have tried using this code but how to do Animination with listview widget in flutter

Is this valid?

 ListView(
 children: <Widget>[
ListTile(
  leading: Icon(Icons.map),
  title: Text('Map'),
),
ListTile(
  leading: Icon(Icons.photo_album),
  title: Text('Album'),
),
ListTile(
  leading: Icon(Icons.phone),
  title: Text('Phone'),
  ),
 ],
);

Answer

CaballeroF picture CaballeroF · Nov 13, 2018

ListView:

Usually this should be used with a small number of children as the List will also construct the invisible elements in the list and a large amount of elements may render this inefficient.

ListView.builder():

The list items are constructed lazily, meaning only a specific number of list items are constructed and when a user scrolls ahead, the earlier ones are destroyed.

More info is here.