GridView in ListView flutter
Ngày đăng:
20/12/2021
Trả lời:
0
Lượt xem:
207
How do i add Gridview inside listview flutterPublished October 21, 2021In this flutter example tutorial we will cover how to add Gridview inside Listview. Sometimes we may require to put Gridview inside listview, but when we put listview can't scroll. In this Example we will fix this issue and add Gridview inside listview. Let's get started Step 1: Create Flutter application Step 2: Let's create UI to add listview inside Gridview. When we add Gridview inside Listview to scroll parent widget, that means Listview we will add physics property of Gridview with like below
While add this property now we can scroll both Listview and Gridview items respected. Complete code for Gridview inside Listview
Step 3: Run application Conclusion: In this example we created a flutter example to add Gridview inside listview.
|