Flutter Swipe Detector | Coderz Product

flutter_swipe_detector

Last updated:

0 purchases

flutter_swipe_detector Image
flutter_swipe_detector Images

Free

Languages

Categories

Add to Cart

Description:

flutter swipe detector

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, offset) {
_addSwipe(direction);
},
onSwipeUp: (offset) {
_addSwipe(SwipeDirection.up);
},
onSwipeDown: (offset) {
_addSwipe(SwipeDirection.down);
},
onSwipeLeft: (offset) {
_addSwipe(SwipeDirection.left);
},
onSwipeRight: (offset) {
_addSwipe(SwipeDirection.right);
},
child: const Container(
padding: EdgeInsets.all(16),
child: Text(
'Swipe me!',
style: TextStyle(
fontWeight: FontWeight.bold,
),
),
),
),
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product: (if this is empty don't purchase this product)

Customer Reviews

There are no reviews.