mapbox-maps-flutter
mapbox-maps-flutter copied to clipboard
Scrollend
How do i detect when scroll has ended i am using the onScrollListener and i do not know how to determine when the scroll has ended.
kindly assist
any update?
_onScrollListener(mapbox.MapContentGestureContext coordinates) async {
_scrollEndTimer?.cancel();
_scrollEndTimer = Timer(Duration(milliseconds: 500), () async {
// PERFORM SOME ACTION HERE
});
}
Went with this approach dont know if there is a better one if there is someone kindly let me know
Hi @sKY02644, I believe that MapContentGestureContext has gestureState which may help with your use case. Please try our latest release and let us know if you still encounter any problems—you’re welcome to reopen the issue if needed. Thank you!