smart_slider 0.0.5 smart_slider: ^0.0.5 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
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();
},
);
},
);