diff --git a/README.md b/README.md index 5f05cc0..40c1ddc 100644 --- a/README.md +++ b/README.md @@ -14,26 +14,25 @@ Very smooth animations supporting Android, iOS, Web & Desktop. ## Why? -We build this package because we wanted to: +We built this package because we wanted to: -- have a completely customizable slider -- be able to swipe in every direction -- choose our own settings for the swiper such as duration, angle, padding, and more -- trigger slide to any direction you want using the controller -- add callbacks while wiping, on end or when the swiper is disabled -- detect the direction (left, right, top, bottom) in which the card was swiped away +- Have a fully customizable slider +- Swipe in any direction +- Undo swipes as many times as you want +- Choose your own settings such as duration, angle, padding and more +- Trigger swipes in any direction with the controller +- Add callbacks while swiping, on end, or when the swiper is disabled +- Detect the direction (left, right, top, bottom) the card was swiped ## Show Cases - +| Swipe in any direction | Trigger swipes | Unswipe the cards | +| ---------------------- | :------------- | :---------------- | +| | | | -Customize the angle - - - -Customize the threshold (when the card should slide away) - - +| Fully customizable | +| ------------------ | +| | ## Installation @@ -122,13 +121,14 @@ class Example extends StatelessWidget { The `Controller` is used to swipe the card from outside of the widget. You can create a controller called `CardSwiperController` and save the instance for further usage. Please have a closer look at our Example for the usage. -| Method | Description | -| ----------- | :------------------------------------------------------------------------------------------- | -| swipe | Changes the state of the controller to swipe and swipes the card in your selected direction. | -| swipeLeft | Changes the state of the controller to swipe left and swipes the card to the left side. | -| swipeRight | Changes the state of the controller to swipe right and swipes the card to the right side. | -| swipeTop | Changes the state of the controller to swipe top and swipes the card to the top side. | -| swipeBottom | Changes the state of the controller to swipe bottom and swipes the card to the bottom side. | +| Method | Description | +| ----------- | :----------------------------------------------------------------------------------------------- | +| swipe | Changes the state of the controller to swipe and swipes the card in your selected direction. | +| swipeLeft | Changes the state of the controller to swipe left and swipes the card to the left side. | +| swipeRight | Changes the state of the controller to swipe right and swipes the card to the right side. | +| swipeTop | Changes the state of the controller to swipe top and swipes the card to the top side. | +| swipeBottom | Changes the state of the controller to swipe bottom and swipes the card to the bottom side. | +| undo | Changes the state of the controller to undo and brings back the last card that was swiped away. |
diff --git a/pubspec.yaml b/pubspec.yaml index 4d92143..d192ab1 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.0 +version: 4.1.0+1 environment: sdk: ">=2.12.0 <3.0.0"