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

outdatedDart 1 only

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

example #

A new Flutter project.

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";
        });
    },
)
67
likes
0
pub points
86%
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