diff --git a/CHANGELOG.md b/CHANGELOG.md index a4b5232..57c6eeb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## [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 diff --git a/README.md b/README.md index 4c04ee6..27afd60 100644 --- a/README.md +++ b/README.md @@ -103,6 +103,8 @@ class Example extends StatelessWidget { | threshold | 50 | Threshold from which the card is swiped away | false | scale | 0.9 | Scale of the card that is behind the front card | false | isDisabled | false | Set to ```true``` if swiping should be disabled, has no impact when triggered from the outside | false +| isHorizontalSwipingEnabled | true | Set to ```false``` if you want your card to move only across the vertical axis when swiping +| isVerticalSwipingEnabled | true | Set to ```false``` if you want your card to move only across the horizontal axis when swiping | onTapDisabled | - | Function that get triggered when the swiper is disabled | false | onSwipe | - | Called with the new index and detected swipe direction when the user swiped | false | onEnd | - | Called when there is no Widget left to be swiped away | false diff --git a/example/pubspec.lock b/example/pubspec.lock index ae4c2e0..cdb3697 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -28,7 +28,7 @@ packages: path: ".." relative: true source: path - version: "1.2.0" + version: "1.2.1" js: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 0e28c13..f6db20c 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: 1.2.0 +version: 1.2.1 environment: sdk: ">=2.12.0 <3.0.0"