v2.0.0
flutter_swipe_detector
一个用于检测您的滑动手势方向并提供回调以处理它们的包。
61喜欢 3740近 30 天下载140Pub 分数
AndroidiOSWebmacOSWindowsLinux
一个用于检测滑动手势方向并提供回调以处理它们的 Flutter 包。
以下为英文项目原文快照,最新内容请访问 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,
),
),
),
),
依赖清单 3 项
{"sdk":"flutter"}{"sdk":"flutter"}^1.0.0先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗