touch_mouse_behavior
Scroll behavior to support both Touch and Mouse in web and desktop (Windows, Macos, Linux) for scrollable widgets.
Usage
To use this plugin, add touch_mouse_behavior as a dependency in your pubspec.yaml file.
dependencies:
touch_mouse_behavior: ^lastVersion
Example
import 'package:touch_mouse_behavior/touch_mouse_behavior.dart';
class MyPage extends StatelessWidget {
const MyPage({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
body: TouchMouseScrollable(
child: SingleChildScrollView(
child: Column(
children: [
Text('Hello'),
Text('World'),
Text('!'),
]
),
),
),
);
}
}