Martina Sasso
Martina Sasso

Reputation: 49

Create a list of strings of a specific collection from Firebase database in Android Studio/Flutter

I need to create a scollable screen with some fixed parameters, and other parameters taken from a list.

EXAMPLE:

enter image description here

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

Answers (2)

Martina Sasso
Martina Sasso

Reputation: 49

I 'fixed' my problem by setting the inner listView.builders with physics: NeverScrollableScrollPhysics().

Upvotes: 0

Amazing Aidan
Amazing Aidan

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

Related Questions