Reputation: 49
I need to create a scollable screen with some fixed parameters, and other parameters taken from a list.
EXAMPLE:
MORNING, AFTERNOON, EVENING & DO ANYTIME are fixed; inside each on them there is a list of habit made with a ListView.builder.
For now I have a ListView with the fixed ones and, inside, other ListView.builders. The problem is that I can't scroll the page when I touch the lists of habits; I think I know the problem, flutter recognize as scrollable only the first ListView, but I don't not how to solve it.
I need the whole block (FIXED + lists) to be scrolled.
Suggestions?
Upvotes: 0
Views: 134
Reputation: 49
I 'fixed' my problem by setting the inner listView.builders with physics: NeverScrollableScrollPhysics().
Upvotes: 0
Reputation: 184
You need Slivers
Check out “Slivers, Demystified” by Emily Fortuna
You might also find GestureDetector useful as it's behavior property can control whether the behaviour is defered to the child view.
Upvotes: 1