saket/swipe

Disable SwipeAction and active swipe by other button

GledsonLScruz opened this issue · 2 comments

Hi! i have an card in compose and i added your lib, i liked a lot. but i want do things that im not sure if your lib can do that, i dont fint any documentation about your lib too.

The questions is, how can i disable the swipe action after swipe one time? i want to my user just swipe once.

The other questions is how can i call the swipeaction without swipe? for example, i have one button in my card and i want when i click in this button show the swipe action animation, how can i do that things?

saket commented

The questions is, how can i disable the swipe action after swipe one time? i want to my user just swipe once.

Can you describe more about this? Do you want this swipe action to be visible but prevent the user from selecting it? Or should it be removed altogether?

The other questions is how can i call the swipeaction without swipe? for example, i have one button in my card and i want when i click in this button show the swipe action animation, how can i do that things?

This wouldn't be possible right now but maybe we can move SwipeRippleState into SwipeableActionsState so that it can be called externally. Wanna send a PR?

saket commented

Closing this due to inactivity.