action_slider 0.7.0 copy "action_slider: ^0.7.0" to clipboard
action_slider: ^0.7.0 copied to clipboard

A slider to confirm actions and provide feedback on the success of these after subsequent loading.

pub.dev github likes popularity pub points license

buy me a coffee

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.
LTR and RTL are both supported.
For a switch with a similar look, you can check out animated_toggle_switch.

Examples #

ActionSlider.standard() with SliderBehavior.stretch
action_slider_example_snake

ActionSlider.standard() with TextDirection.rtl
action_slider_example_rtl

ActionSlider.dual()
action_slider_example_dual

ActionSlider.standard() with rolling = true
action_slider_example_rolling

ActionSlider.standard() with SliderBehavior.stretch and rolling = true
action_slider_example_rolling_snake

You can build your own sliders with ActionSlider.custom()
action_slider_example_custom

Easy Usage #

Easy to use and highly customizable.

ActionSlider.standard(
    child: const Text('Slide to confirm'),
    action: (controller) async {
        controller.loading(); //starts loading animation
        await Future.delayed(const Duration(seconds: 3));
        controller.success(); //starts success animation
    },
    ... //many more parameters
)

Maximum customizability with ActionSlider.custom.

ActionSlider.custom(
    foregroundBuilder: (context, state, child) => ...,
    backgroundBuilder: (context, state, child) => ...,
    outerBackgroundBuilder: (context, state, child) => ...,
    action: (controller) => ...,
    ... //many more parameters
)
322
likes
160
pub points
96%
popularity
screenshot

Publisher

verified publishersplashbyte.dev

A slider to confirm actions and provide feedback on the success of these after subsequent loading.

Repository (GitHub)
View/report issues

Documentation

API reference

Funding

Consider supporting this project:

buymeacoffee.com
ko-fi.com

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on action_slider