smart_slider

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.


License
MIT

Documentation

likes pub.dev popularity pub points

Example

My GIF

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();
        },
      );
    },
);

If you like this package, please leave a like there on pub.dev and star on GitHub