track_slider 0.0.4
track_slider: ^0.0.4 copied to clipboard
Track Slider is a powerful and customizable track slider built with love using Flutter and Dart.
This is a nice custom slider for flutter with a track design. It gives you current tick value on scroll which you can access by using onChange funtion.
Features #
- Set steps in multiple of 4.
- Get track value on scroll.
- Set initial position of slider.
- Set indicator color using selectedTrackColor.
- Set track color using unselectedTrackColor.
Getting started #
Import this package in your project dependencies.
track_slider: ^0.0.1
Usage #
TrackSlider(
steps:100,
selectedTrackColor = Colors.blue,
unselectedTrackColor = Colors.grey,
marginLeft: 36,
defaultValue: 4,
onChange: (value) {
//do something with value...
},
)