I have a tab in the middle of a page, the tab is inside a listView, to render the the tab I had to set a fixed height on it, but the problem is that the content of the tab it will vary, it can have 1 or more items, how can I make the tab height dynamic?
Asked
Active
Viewed 554 times
2
-
use `LayoutBuilder` widget – Rubens Melo May 09 '19 at 17:24
-
I tried the LayoutBuilder, but it did'nt solve the problem – Rafael Honda May 09 '19 at 18:54
-
I'm dealing with the same problem, I have a TabView inside a list view. Both tabs should contain lists of the data of variable length. Can you be more specific on how to use LayoutBuilder to achive that? – Heisenbug Aug 06 '19 at 12:52
1 Answers
3
I've answered at in the similar question. https://stackoverflow.com/a/57558695/5541523
Maybe it could help you. P.s. You will need to add GestureDetector if you want to change tabs on swipe.

Kherel
- 14,882
- 5
- 50
- 80