swipedetector 0.0.5 copy "swipedetector: ^0.0.5" to clipboard
swipedetector: ^0.0.5 copied to clipboard

outdatedDart 1 only

A Flutter package to detect up, down, left, right swipes.

swipedetector #

A Flutter package to detect up, down, left, right swipes.

Getting Started #

For help getting started with Flutter, view our online documentation.

Usage #

Using SwipeDetector is straightforward, just wrap it around the Widget you want to detect swipes on.

SwipeDetector(
    child: ... //You Widget Tree here
    ),
    onSwipeUp: () {
        setState(() {
            _swipeDirection = "Swipe Up";
        });
    },
    onSwipeDown: () {
        setState(() {
            _swipeDirection = "Swipe Down";
        });
    },
)
68
likes
10
pub points
89%
popularity

Publisher

unverified uploader

A Flutter package to detect up, down, left, right swipes.

Homepage

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on swipedetector