jushutch / swiping_card_deck

A widget for swiping through a deck of cards with gestures or buttons.
https://pub.dev/packages/swiping_card_deck
BSD 3-Clause "New" or "Revised" License
13 stars 10 forks source link

Enable control over swiping animation speed #22

Closed jushutch closed 2 years ago

jushutch commented 2 years ago

Expose the duration parameter of the AnimationController for the swiping animation by adding a new swipeAnimationDuration property to both the SwipingCardDeck and SwipingGestureDetector widgets. The property parameter is optional, with a reasonable default of 500 milliseconds. Updated the example usage to include this new optional parameter. Now the duration of the swiping animation can be set faster or slower as desired.

Resolves #21