Flutter Animated Slider!

If you want to save your time with a animated slider, just install and enjoy it!

How to use

Install the package

dependencies:
  animated_slider: ^1.0.0

Now, you can use AnimatedSlider in your application.

AnimatedSlider(
	buttonSize: 50,
	barHeight: 40,
	barText: Center(child: Text('Swipe to signing', style: TextStyle(color: Colors.black45),),),
	progressText: Center(child: Text('Signing...', style: TextStyle(color: Colors.white)),),
	buttonIcon: Icon(
	Icons.create,
	color: Colors.white,
	size: 25,
	),
),

Properties

PropertyDescription
keyuse the property KEY to access some functions like reset() and setPosition(double).
rangedefine the max range in percent(%) to trigger onSuccess().
buttonIcondefine a icon to your button.
buttonBorderRadiusdefine a border radius to your button.
buttonColordefine the button color.
buttonSizedefine the button size.
barTextdefine a widget inside the bar.
barHeightdefine the height of the bar.
barColordefine the bar color.
barBorderRadiusdefine the border radius bar.
progressTextdefine a widget inside the progress bar.
progressColordefine the progress bar color.
onSuccessdefine a callback when you swipe to right.
onFaileddefine a callback when you swipe to left.

Platform

AndroidIOSWeb
SupportYesYeswe didn't test

Contributors

  • Rafael Kenji Nagai

Flutter Package

Enjoy yourself!

Libraries

animated_slider