How to detect scroll position of ListView in Flutter
问题 I'm using ListView widget to show items as a list. In a window three, items viewing must the middle item place in the middle. So how can I detect position of ListView when scrolling stop? How to detect ListView Scrolling stopped? 回答1: I used NotificationListener that is a widget that listens for notifications bubbling up the tree. Then use ScrollEndNotification , which indicates that scrolling has stopped. For scroll position I used _scrollController that type is ScrollController . new