This is how I have composed a tab called Reports in flutter. It has a filter (first row in the figure) and a FutureBuilder(which returns a table). The nested Listview is custom table, and I want the table to scroll keeping the filters fixed.
Asked
Active
Viewed 621 times
0

Chaks
- 82
- 2
- 15
-
Closing this in favour of https://stackoverflow.com/questions/48606995/flutter-implement-sticky-headers-and-the-snap-to-item-effect – Chaks Jan 18 '19 at 08:23
1 Answers
1
In the nested ListView add the option shrinkWrap: true
.
To remove the scroll effect add also physics: ClampingScrollPhysics()

Martyns
- 3,605
- 22
- 33
-
I tried that it makes the whole tab scrollable along with the headers row. Also I think that ClampingScrollPhysics is a default in android. – Chaks Jan 18 '19 at 08:12
-
1Oh, you want sticky headers of some sort then. I think there is a package for that. – Martyns Jan 18 '19 at 08:15
-