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

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

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

Features #

  • Custom thumb image
  • Active track gradient
  • Inactive track 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
21
likes
150
points
418
downloads

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)
View/report issues

Topics

#slider #gradient #image-thumb

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on gradient_slider