v2.0.0
flutter_swipe_detector
スワイプの方向を検出し、それらを処理するためのコールバックを提供するパッケージです。
61いいね 374030日間ダウンロード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 ↗