Question : Check if scroll position is at top or bottom in ListView?
Answered by : christian-onwe-cj
_scrollController = new ScrollController(); _scrollController.addListener( () { double maxScroll = _scrollController.position.maxScrollExtent; double currentScroll = _scrollController.position.pixels; double delta = 200.0; // or something else.. if ( maxScroll - currentScroll <= delta) { // whatever you determine here //.. load more } } );
Source : https://newbedev.com/how-to-check-if-scroll-position-is-at-top-or-bottom-in-listview | Last Update : Sun, 12 Sep 21