The GridView Widget
Learn to adapt a list of Flutter widgets to larger screens by replacing ListView with GridView.
We'll cover the following
Lists of widgets are a common layout component of many Flutter applications. If we have information that has a repeating format, like products in an e-commerce platform, we use a ListView
to place them in a sequence either vertically (portrait mode) or horizontally (landscape mode). We adapt a ListView
widget to the device’s orientation.
If we use a ListView
, it only works if the children will always be displayed in a list. But what happens when there’s so much space on the screen that a list is not enough?
Get hands-on with 1400+ tech skills courses.