0 purchases
touch mouse behavior
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
copied to clipboard
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('!'),
]
),
),
),
);
}
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.