I am trying to make the ListView container adapt to the content by keeping a footer right below the container and not on the bottom of the page :
- many tiles : ListView will be scrollable and the footer on the bottom
- few tiles : footer moves up to the bottom of the ListView.
As I can only manage to have a scrollable ListView when embedded in a Expanded widget, the footer always remains at the bottom of the screen.
I tried many solutions, using Flexible widgets, ConstrainedBox in a LayoutBuilder… none of them worked
2
Answers
I have tried it with Stack and Column and it works. Try below code