Search⌘ K

The ListView Widget

Explore the ListView widget in Flutter to manage large or dynamic lists within responsive UI. Learn to combine ListView with OrientationBuilder to change scrolling from vertical in portrait mode to horizontal in landscape mode, improving user experience on narrow screens while understanding its limitations on wider screens.

The Row and Column widgets are used for content that fits on the screen. When we have a larger or unknown number of items displayed in a vertical or horizontal orientation, we should use the ListView widget.

When considering responsive UI, there isn’t much that we need to do for a ListView. Most of the work is done by the children of ListView or by its parent. In this lesson, we’ll combine ListView with OrientationBuilder to make sure that our list looks good in both portrait and ...