Quantcast
Channel: Active questions tagged listview - Stack Overflow
Viewing all articles
Browse latest Browse all 611

How to add a scrollable ListView in a flexible container so that the footer adapts its position?

$
0
0

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.

illustration here

I tried many solutions, using Flexible widgets, ConstrainedBox in a LayoutBuilder... none of them worked


Viewing all articles
Browse latest Browse all 611

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>