From 75d8ebe903738844774c05a1daabf80f5fa07855 Mon Sep 17 00:00:00 2001 From: ricardodalarme Date: Wed, 12 Apr 2023 00:12:18 -0300 Subject: [PATCH] fix: pass the axis disabled to the card_animation (#13) --- CHANGELOG.md | 6 +++++- lib/src/card_swiper.dart | 2 ++ pubspec.yaml | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7244029..013dce0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/lib/src/card_swiper.dart b/lib/src/card_swiper.dart index 3dad38b..0570a90 100644 --- a/lib/src/card_swiper.dart +++ b/lib/src/card_swiper.dart @@ -192,6 +192,8 @@ class _CardSwiperState extends State animationController: _animationController, maxAngle: widget.maxAngle, initialScale: widget.scale, + isVerticalSwipingEnabled: widget.isVerticalSwipingEnabled, + isHorizontalSwipingEnabled: widget.isHorizontalSwipingEnabled, ); } diff --git a/pubspec.yaml b/pubspec.yaml index d8611dd..9ab0cc9 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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. homepage: https://github.com/ricardodalarme/flutter_card_swiper issue_tracker: https://github.com/ricardodalarme/flutter_card_swiper/issues -version: 4.1.1 +version: 4.1.2 environment: sdk: ">=2.12.0 <3.0.0"