Check If Scroll Position Is At Top Or Bottom In

[Solved] Check If Scroll Position Is At Top Or Bottom In | Swift - Code Explorer | yomemimo.com
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

Answers related to check if scroll position is at top or bottom in listview

Code Explorer Popular Question For Swift