How can you detect mouse wheel scroll in flutter web? It seems like it would be in a gesture detector but I don't see it in there. How do list views detect mouse scroll?
Wrap your ListView
(or any other scroll view) with Listener and listen for PointerScrollEvent:
Listener(
onPointerSignal: (pointerSignal){
if(pointerSignal is PointerScrollEvent){
// do something when scrolled
print('Scrolled');
}
},
child: ... //your scrollview here
)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With