import 'package:flutter/gestures.dart'; import 'package:flutter/material.dart'; class MyCustomScrollBehavior extends MaterialScrollBehavior { @override Set get dragDevices => { PointerDeviceKind.touch, PointerDeviceKind.mouse, }; }