splashbyte / action_slider

A Flutter slider to confirm actions and provide feedback on the success of these after subsequent loading.
BSD 3-Clause "New" or "Revised" License
33 stars 12 forks source link

Update action_slider_widget.dart #9

Closed niu-dali closed 3 months ago

niu-dali commented 1 year ago

add needReverse

niu-dali commented 1 year ago

添加 needReverse 字段,用于在滑动结束时判断是否要倒退动画。 该效果用于验证码的滑块中,如下图所示,滑动结束时,滑块不返回原点,而是停留在原处。

1693366975249

maeddin commented 1 year ago

Please create an issue about it. Also, all MRs and Issues should be written in English.

niu-dali commented 1 year ago

https://github.com/splashbyte/action_slider/issues/10

niu-dali commented 1 year ago

Add a needReverse field to determine if you want to rewind the animation at the end of the slide. This effect is used in the slider of the captcha, as shown in the image below, when the slide ends, the slider does not return to the origin, but stays in place.

maeddin commented 3 months ago

This issue is solved with #16