How can I disable the animation when you scroll all the way to the top in ListView.builder

NotificationListener<OverscrollIndicatorNotification>(
    onNotification: (OverscrollIndicatorNotification overscroll) {
      overscroll.disallowGlow();
    },
    child: ListView.builder(...));

As official docs say

GlowingOverscrollIndicator generates OverscrollIndicatorNotification before showing an overscroll indication. To prevent the indicator from showing the indication, call OverscrollIndicatorNotification.disallowGlow on the notification.


This will help you just add this in your Listview.builder

physics: ClampingScrollPhysics(),

You can solve this problem using two methods.

  1. if you can afford bounce back effect then simply use ListView.builder's property physics and set value BouncingScrollPhysics() like this:

    physics: BouncingScrollPhysics()
    
  2. you can also solve it using ScrollConfiguration and custom ScrollBehavior.

See for this post for details.