action_slider 0.1.1 action_slider: ^0.1.1 copied to clipboard
A slider to confirm actions and provide feedback on the success of these after subsequent loading.
If you like this package, please leave a like there on pub.dev and star on GitHub. #
A slider to confirm actions and provide feedback on the success of these after subsequent loading.
Examples #
Easy Usage #
Easy to use and highly customizable.
ActionSlider.standard(
width: 300.0,
child: const Text('Slide to confirm'),
successIcon: const Icon(Icons.check_rounded, color: Colors.white),
onSlide: (loading, success, failure, reset) async {
loading(); //or controller.loading()
await Future.delayed(const Duration(seconds: 3));
success(); //or controller.success()
},
),