animated_slider 1.0.1

Flutter Android iOS web

It is a like a toggle but It is a slider that you can define callbacks to left and right.

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!

2
likes
90
pub points
44%
popularity

It is a like a toggle but It is a slider that you can define callbacks to left and right.

Homepage

Documentation

API reference

Uploader

rafakenji23@gmail.com

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on animated_slider