flutter_tindercard
Tinder(TanTan) 卡片組件,快速在您的 Flutter 應用中實現高品質的滑動卡片組件。
一個使用 Flutter 建構的 Tinder(探探) 卡片組件。
{"sdk":"flutter"}{"sdk":"flutter"}1.2.4以下為英文專案原文快照,最新內容請造訪 GitHub。
Tinder/TanTan Card Widget.
screenshot
Depend on it by adding this to your pubspec.yaml file: flutter_tindercard: ^x.x.x
Import it: import 'package:flutter_tindercard.dart'
Add TinderSwapCard in your widget layout and write the single card layout builder you need, then you get a Tinder(探探) like swap card widget!
Use CardSwipeCompleteCallback for the swiped orientation and index!
Use CardController to trigger swap from outside. Init a CardController as param for widget, and invoke method triggerLeft/Right of your CardController to trigger swipe!
Use CardDragUpdateCallback to get swiping card's detail.