v2.0.0
flutter_swipe_detector
Ein Paket zur Erkennung Ihrer Wischrichtungen und zur Bereitstellung von Rückrufen zum Verarbeiten dieser.
61Likes 380030-Tage-Downloads140Pub-Punkte
AndroidiOSWebmacOSWindowsLinux
Ein Flutter-Paket zur Erkennung Ihrer Wischrichtungen und Bereitstellung von Rückrufen zum Verarbeiten.
{"sdk":"flutter"}{"sdk":"flutter"}^1.0.0Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.
A package to detect your swipe directions and provides you with callbacks to handle them.
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,
),
),
),
),