我正在尝试在我的 flutter 应用程序中列出一个列表。但是,每次我一直滚动到顶部时,都会出现这样的动画:
/image/Z7mHh.jpg , /image/EAIyj.jpg
有没有办法隐藏这个动画?
最佳答案
NotificationListener<OverscrollIndicatorNotification>(
onNotification: (OverscrollIndicatorNotification overscroll) {
overscroll.disallowGlow();
},
child: ListView.builder(...));
GlowingOverscrollIndicator generates OverscrollIndicatorNotification before showing an overscroll indication. To prevent the indicator from showing the indication, call OverscrollIndicatorNotification.disallowGlow on the notification.
关于dart - 当您一直滚动到 ListView.builder 的顶部时,如何禁用动画,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53153219/