v0.0.1
swipe
Flutter में स्वाइप ऊपर, नीचे, बाएं और दाएं का पता लगाने का आसान तरीका।
46लाइक 2.4 हज़ार30-दिन डाउनलोड140Pub अंक
AndroidiOSWebmacOSWindowsLinux
Flutter में स्वाइप ऊपर, नीचे, बाएं और दाएं का पता लगाने का आसान तरीका।
यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
The easy way to detect swipe up, down, left and right in Flutter.
Add dependency to your flutter project:
$ flutter pub add swipe
or
dependencies:
swipe: ^0.0.1
or
dependencies:
swipe:
git:
url: git://github.com/salkuadrat/swipe.git
Then run flutter pub get.
Here is a simple way of using Swipe.
Swipe(
child: ..., // your child widget
onSwipeUp: () {
// do something when swiping up
},
onSwipeDown: () {
// do something when swiping down
},
onSwipeLeft: () {
// do something when swiping left
},
onSwipeRight: () {
// do something when swiping right
},
)
Swipe widget comes with additional parameters to customize your swiping experience.
Swipe(
child: ...,
onSwipeUp: ...,
onSwipeDown: ...,
onSwipeLeft: ...,
onSwipeRight: ...,
verticalMaxWidthThreshold: 50,
verticalMinDisplacement: 100,
verticalMinVelocity: 300,
horizontalMaxHeightThreshold: 50,
horizontalMinDisplacement: 100,
horizontalMinVelocity: 300,
)
You can try a working example here.
निर्भरता सूची 2 आइटम
{"sdk":"flutter"}{"sdk":"flutter"}उपयोग के अनुसार छाँटें, गतिविधि की तुलना करें और अपनाने से पहले मूल प्रोजेक्ट की आवश्यकताएँ जाँचें।
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗