gradient_slider 1.0.1 copy "gradient_slider: ^1.0.1" to clipboard
gradient_slider: ^1.0.1 copied to clipboard

A slider widget, supports image thumb, track gradient and border

A slider wiget, supports image thumb, track gradient and border

Features #

  • Custom thumb image
  • Active trck gradient
  • Inctive trck gradient
  • Track border
  • Track border color

Usage #

 GradientSlider(
  thumbAsset: 'assets/vert_thumb.png',
  thumbHeight: 30,
  thumbWidth: 30,
  trackBorder: 1,
  trackBorderColor: Colors.black,
  activeTrackGradient: const LinearGradient(colors: [Colors.pink, Colors.blue]),
  inactiveTrackGradient:
      LinearGradient(colors: [Colors.grey.shade300, Colors.grey.shade800]),
  slider: Slider(value: 0.5, onChanged: (value) {}
  ),
)
Type Properties
String thumbAsset
double thumbHeight
double thumbWidth
Widget slider
Gradient activeTrackGradient
Gradient inactiveTrackGradient
Color inactiveTrackColor
double trackHeight
double trackBorder
Color trackBorderColor
18
likes
120
pub points
84%
popularity

Publisher

unverified uploader

A slider widget, supports image thumb, track gradient and border

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on gradient_slider