Can anyone clarify for me what I have shown in the ‘image’ attached is achievable in flutter? if yes, how? explaining the image is a bit hard.
I am new to flutter and trying to nest some scrollable views inside each other.
at first I tried to achieve this by nesting simple scrollable row and columns inside each other but faced some errors and exceptions (unbound height and width).
I searched and found out it is better to use ‘CustomScrollView’ for nesting lists in each other. tried it but haven’t achieved what I want yet.
Any help/hint on how to achieve this would be much appreciated.
2
Answers
@bragi, thanks for the answer, I followed what you suggested and after some trial and error, I finally got it working. But in terms of efficiency and how the application will respond/render I am not sure if this was the best way to do it:
For some reason, the Expanded widget did not work so I had to wrap my second column with SizedBox!
This is definitely possible, and you could use an approach like below, which is inspired by another question on stack overflow. I recommend reading that for better clarification — here.
Edit: Wrapping the Row widget in a SingleChildScrollView would make the entire page scrollable.
If this doesn’t help, I’d suggest finding flutter repositories of e.g. Netflix clones or other existing apps known to have scroll views inside a list view.