v0.0.2
swipe_gesture_recognizer
Flutter의 위젯용 간단하고 가벼운 스와이프 제스처 인식기입니다.
27좋아요 1430일 다운로드30Pub 점수
플랫폼 정보 없음
Flutter의 위젯용 간단하고 가벼운 스와이프 제스처 인식기입니다.
{"sdk":"flutter"}{"sdk":"flutter"}아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
A simple and lightweight swipe gesture recognizer for a Flutter widget.
Detects the 4 swipe gestures i.e swipe up, swipe down, swipe left and swipe right.
Pass your widget as the child of this widget. Declare the callback function for the desired swipe direction.
SwipeGestureRecognizer(
child: MyWidget(),
onSwipeLeft: () {
// DO STUFF WHEN LEFT SWIPE GESTURE DETECTED
},
onSwipeRight() {
// DO STUFF WHEN RIGHT SWIPE GESTURE DETECTED
},
onSwipeUp: () {
// DO STUFF WHEN UP SWIPE GESTURE DETECTED
},
onSwipeDown() {
// DO STUFF WHEN DOWN SWIPE GESTURE DETECTED
},
);