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

outdated

A package to detect your swipe directions and provides you with callbacks to handle them.

Flutter Swipe Detector #

Author: Jop Middelkamp #

A package to detect your swipe directions and provides you with callbacks to handle them.

Usage #

SwipeDetector(
  onSwipe: (direction) {
    _addSwipe(direction);
  },
  onSwipeUp: () {
    _addSwipe(SwipeDirection.up);
  },
  onSwipeDown: () {
    _addSwipe(SwipeDirection.down);
  },
  onSwipeLeft: () {
    _addSwipe(SwipeDirection.left);
  },
  onSwipeRight: () {
    _addSwipe(SwipeDirection.right);
  },
  child: const Container(
    padding: EdgeInsets.all(16),
    child: Text(
      'Swipe me!',
      style: TextStyle(
        fontWeight: FontWeight.bold,
      ),
    ),
  ),
),
51
likes
0
pub points
94%
popularity

Publisher

verified publisherbaseflow.com

A package to detect your swipe directions and provides you with callbacks to handle them.

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_swipe_detector