0 purchases
swiper 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
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.