EDIT :
Prefer the solution from How to remove scroll glow? instead.
While the solution shown here works, it doesn't actually removes the glow. It cancels it. This is less optimized as resources to create glow effects are still there. And less customizable because it doesn't allow replacing Glow with a different effect (such as fade).
You can insert in your widget tree a NotificationListener<OverscrollIndicatorNotification>
and then call on notification overscrollIndicatorNotification.disallowGlow()
NotificationListener<OverscrollIndicatorNotification>(
onNotification: (overscroll) {
overscroll.disallowGlow();
},
child: new ListView.builder(
itemBuilder: (context, index) {
return new ListTile(
title: new Text("data"),
);
},
),
),
You can insert NotificationListener
wherever you like. As long as it's a child of MaterialApp
and above the desired ListView
. It doesn't need to be a direct parent of that ListView
.