© Fu Cheng 2019
F. ChengFlutter Recipeshttps://doi.org/10.1007/978-1-4842-4982-6_7

7. Common Widgets

Fu Cheng1 
Sandringham, Auckland, New Zealand

In Flutter apps, some widgets are widely used for different purposes. This chapter discusses some common widgets.

7.1 Displaying a List of Items


You want to display a scrollable list of items.


Use ListView widget as the container of items.


Flutter layout widgets like Flex, Row, and Column don’t support scrolling, and these widgets are not designed to be used to display items when scrolling is required. If you want to display a large number of items, you should use ListView widget. You can think ListView as the scrollable counterpart of Flex widget.

There are three different ...

Get Flutter Recipes: Mobile Development Solutions for iOS and Android now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.