smart_slider 0.0.4 smart_slider: ^0.0.4 copied to clipboard
A fully customizable slide to confirm actions and provide feedback on the success. It supports different states like loading, success, and failure to enhance user interaction.
Example
![My GIF](https://drive.google.com/uc?id=1yyYogp0Ph440tgKOOHT6WN_y7ZvOElte)How to use
SmartSlider(
controller: controller,
onSlideComplete: () async {
controller.loading();
await Future.delayed(Duration(seconds: 2)).then(
(value) {
controller.success();
_incrementCounter();
},
);
await Future.delayed(Duration(seconds: 2)).then(
(value) {
controller.reset();
},
);
},
);