Place a floating app bar above a list

Report errors to a service

Work with long lists

Cookbook

Lists

Work with long lists

1. Create a data source

2. Convert the data source into widgets

Interactive example

Children’s extent

The standard ListView constructor works well
for small lists. To work with lists that contain
a large number of items, it’s best to use the
ListView.builder constructor.

In contrast to the default ListView constructor, which requires
creating all items at once, the ListView.builder() constructor
creates items as they’re scrolled onto the screen.

1. Create a data source

First, you need a data source. For example, your data source
might be a list of messages, search results, or products in a store.
Most of the time, this data comes from the internet or a database.