fix: pass the axis disabled to the card_animation (#13)

This commit is contained in:
ricardodalarme 2023-04-12 00:12:18 -03:00
parent 946d560b6f
commit 75d8ebe903
3 changed files with 8 additions and 2 deletions

View File

@ -1,4 +1,8 @@
## [4.1.0] ## [4.1.2]
- Fixes the `isHorizontalSwipingEnabled` and `isVerticalSwipingEnabled`.
## [4.1.1]
- Changes `onSwipe` and `onEnd` callbacks to be FutureOr. - Changes `onSwipe` and `onEnd` callbacks to be FutureOr.

View File

@ -192,6 +192,8 @@ class _CardSwiperState<T extends Widget> extends State<CardSwiper>
animationController: _animationController, animationController: _animationController,
maxAngle: widget.maxAngle, maxAngle: widget.maxAngle,
initialScale: widget.scale, initialScale: widget.scale,
isVerticalSwipingEnabled: widget.isVerticalSwipingEnabled,
isHorizontalSwipingEnabled: widget.isHorizontalSwipingEnabled,
); );
} }

View File

@ -2,7 +2,7 @@ name: flutter_card_swiper
description: 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. description: 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.
homepage: https://github.com/ricardodalarme/flutter_card_swiper homepage: https://github.com/ricardodalarme/flutter_card_swiper
issue_tracker: https://github.com/ricardodalarme/flutter_card_swiper/issues issue_tracker: https://github.com/ricardodalarme/flutter_card_swiper/issues
version: 4.1.1 version: 4.1.2
environment: environment:
sdk: ">=2.12.0 <3.0.0" sdk: ">=2.12.0 <3.0.0"