AnupKumarPanwar / swipe_cards

Tinder like swipe cards for flutter.
https://pub.dev/packages/swipe_cards
BSD 3-Clause "New" or "Revised" License
52 stars 47 forks source link

Improvements #31

Open dmitry-mikheev opened 1 year ago

dmitry-mikheev commented 1 year ago
  1. Added properties:

    • leftSwipeThreshold
    • rightSwipeThreshold
    • topSwipeThreshold They regulate distance that triggers nope/like widgets to appear.
  2. Thresholds for triggering nope/like events are set to be equal than thresholds for showing nope/like widgets. Now, if you don't see nope/like widgets and release the card - the card will return to original place.

  3. Added direct events in SwipeCards widget: Function(SwipeItem item, SlideRegion? slideRegion)? onSwipeChange; Function(SwipeItem item, SlideRegion? slideRegion)? onSwipeFinish; They will be triggered when user drags the card or releases the card.