v0.0.2
swipe_gesture_recognizer
一个简单轻量的滑动手势识别器,用于 Flutter 中的 widget。
27喜欢 29近 30 天下载30Pub 分数
平台暂无数据
一个简单轻量的滑动手势识别器,用于 Flutter 中的 widget。
以下为英文项目原文快照,最新内容请访问 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
},
);
依赖清单 2 项
{"sdk":"flutter"}{"sdk":"flutter"}先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗