flutter_card_swiper 5.0.0
flutter_card_swiper: ^5.0.0 copied to clipboard
This is a Tinder-like card swiper package. It allows you to swipe left, right, up, and down and define your own business logic for each direction.
[5.0.0] #
- Adds option to customize the back card offset.
- BREAKING CHANGE:
CardSwiperController
is no longer disposed byCardSwiper
, but who created it must dispose it.
[4.1.3] #
- Fix Swiping when
isDisabled
istrue
and triggered by thecontroller
.
[4.1.2] #
- Fixes the
isHorizontalSwipingEnabled
andisVerticalSwipingEnabled
.
[4.1.1] #
- Changes
onSwipe
andonEnd
callbacks to be FutureOr.
[4.1.0] #
- Adds option to undo swipes.
[4.0.2] #
- Fixes
onSwipe
callback being called twice.
[4.0.1] #
- Updates the docs.
[4.0.0] #
- BREAKING CHANGE:
- CardSwipers onSwipe function now returns
<bool>
instead of<void>
. If onSwipe returnsfalse
, the swipe action will now be canceled and the current card will remain on top of the stack. Otherwise, if it returnstrue
, the swipe action will be performed as expected.
- CardSwipers onSwipe function now returns
[3.1.0] #
- Adds option to set the initial index of the swiper.
[3.0.0] #
- BREAKING CHANGES:
- Adds currentIndex and previousIndex to the onSwipe callback.
- Renders the items through a builder function.
[2.1.0] #
- Add option to display more cards at a time. Useful if the widgets you want in your cards take time to build (for example a network image or video): displaying more cards builds them in advance and makes a fast serie of swipes more fluid.
[2.0.1] #
- Fixes wrong item rendering.
[2.0.0] #
- Makes CardSwiper a generic of
Widget?
. - Adds option to control if the stack should loop or not.
- BREAKING CHANGE:
- Now CardSwiper is a stack, meaning that the last item is now the visible item.
[1.2.1] #
- Add option to disable vertical or horizontal swipping
[1.2.0] #
- Allow changing the scale of the card that is behind the front card
[1.1.1] #
- Dipose the CardSwiperController to avoid memory leaks
[1.1.0] #
- Add option to slide up and down through controller
[1.0.2] #
- Make all callbacks type-safe
[1.0.1] #
- Fix problem with the back card not being rendered
[1.0.0] #
- Based on Appinio Swiper