action_slider

Creator: coderz1093

Last updated:

0 purchases

action_slider Image
action_slider Images

Languages

Categories

Add to Cart

Description:

action slider

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

ActionSlider.standard() with TextDirection.rtl

ActionSlider.dual()

ActionSlider.standard() with rolling = true

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

You can build your own sliders with ActionSlider.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
)
copied to clipboard
Maximum customizability with ActionSlider.custom.
ActionSlider.custom(
foregroundBuilder: (context, state, child) => ...,
backgroundBuilder: (context, state, child) => ...,
outerBackgroundBuilder: (context, state, child) => ...,
action: (controller) => ...,
... //many more parameters
)
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.