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

Flutter ListView height and Staffold extendBody: true

$
0
0

I have came across one "issue" with using ListView builder (multiple of them) on single page. In combination with CustomScrollView and SliverToBoxAdapter I was able to build 3 different ListVIew-s with vertical and horizontal scrolls.

Besides that I have BottomNavigationBar which has transparent background and floating button docked in the middle.

Main Scaffold has "extendBody" flag set to true, which will expand content below BottomNavigationBar. Exactly what I wanted.

The issue and downside of using "extendBody" is that every ListView builder with vertical scroll will create extra padding below to compensate BottomNavigationBar height.

I have tried many things to eliminate that padding in each ListView widget that is placed on page.

Solution: Actual solution is posted below


Viewing all articles
Browse latest Browse all 611

Trending Articles



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