swipe_direction_detector

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

swipe direction detector

Swipe Detector #
Author: woodjobber #
A package to detect your swipe directions and provides you with callbacks to handle them.
Usage #
SwipeDetector(
onSwipe: (direction, offset) {
print(direction);
},
onSwipeUp: (offset) {
print('up');
},
onSwipeDown: (offset) {
print('down');
},
onSwipeLeft: (offset) {
print('left');
},
onSwipeRight: (offset) {
print('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:

Customer Reviews

There are no reviews.