touch_mouse_behavior 1.0.1 copy "touch_mouse_behavior: ^1.0.1" to clipboard
touch_mouse_behavior: ^1.0.1 copied to clipboard

Scroll behavior to support both Touch and Mouse in web and desktop (Windows, Macos, Linux) for scrollable widgets.

touch_mouse_behavior #

pub package

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('!'),
              ]
            ),
          ),
        ),
      );
  }
}
15
likes
160
pub points
72%
popularity

Publisher

verified publisherbuildtoapp.com

Scroll behavior to support both Touch and Mouse in web and desktop (Windows, Macos, Linux) for scrollable widgets.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on touch_mouse_behavior