dual_scroll 0.0.1 copy "dual_scroll: ^0.0.1" to clipboard
dual_scroll: ^0.0.1 copied to clipboard

outdated

A Flutter plugin to provide platform independent/dependant scrolling and panning functionality.

A Flutter plugin to provide platform independent/dependant scrolling and panning functionality.

Features #

  • This package can scroll horizontally and vertically, the scroll is locked once it is scrolled in a particular direction.
  • This package uses touch gestures on Mobile Platforms and Mouse/Trackpad inputs on Desktop/Web.

Getting started #

Add dual_scroll: any to your pubspec.yaml under dependencies section as follows.

dependencies:
# Your other dependencies...
  dual_scroll: any
# Your other dependencies...

Run flutter pub get to get the package.

Alternatively, your editor might support

flutter pub get

Usage #

Start by importing the package

import 'package:dual_scroll/dual_scroll.dart';

Use by wrapping the Widget You want to be scrollable in the following way:

return DualScroll(
    verticalScrollbar: ScrollBar.defaultScrollBar(),
    horizontalScrollbar: ScrollBar.defaultScrollBar(),
    child: Container(), /* Your child widget here*/
);

Usage with ListView/GridView/Scrollable Widgets as Child/Children #

To use the DualScroll widget while having a ListView/GridView/Scrollable Widget(s) as its child/children, initialize DualScroll in this way:

return DualScroll(
    verticalScrollController: yourVerticalScrollController,
    horizontalScrollController: yourHorizontalScrollController,
    verticalScrollbar: ScrollBar.defaultScrollBar(),
    horizontalScrollbar: ScrollBar.defaultScrollBar(),
    child: Container(), /* Your child widget here*/
);

Additional information #

If you experience any issues, please file those here on Github. If you want to contribute to this repo, open a PR on Github. If you want to view the API in detail, visit dual_scroll on our website.

Also, We would really appreciate if you view our website and our apps.

5
likes
0
points
69
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin to provide platform independent/dependant scrolling and panning functionality.

Homepage
Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

flutter

More

Packages that depend on dual_scroll