docs(readme): simplify the controller explanation
This commit is contained in:
parent
095d46f21a
commit
589718c4b4
16
README.md
16
README.md
|
|
@ -120,16 +120,16 @@ class Example extends StatelessWidget {
|
||||||
|
|
||||||
#### Controller
|
#### Controller
|
||||||
|
|
||||||
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.
|
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](https://github.com/ricardodalarme/flutter_card_swiper/tree/main/example) for the usage.
|
||||||
|
|
||||||
| Method | Description |
|
| Method | Description |
|
||||||
| ----------- | :----------------------------------------------------------------------------------------------- |
|
| ----------- | :--------------------------------------------------- |
|
||||||
| swipe | Changes the state of the controller to swipe and swipes the card in your selected direction. |
|
| swipe | Swipes the card in the selected direction. |
|
||||||
| swipeLeft | Changes the state of the controller to swipe left and swipes the card to the left side. |
|
| swipeLeft | 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. |
|
| swipeRight | 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. |
|
| swipeTop | 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. |
|
| swipeBottom | 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. |
|
| undo | Bring back the last card that was swiped away. |
|
||||||
|
|
||||||
<hr/>
|
<hr/>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue