step_slider 1.0.0+1 copy "step_slider: ^1.0.0+1" to clipboard
step_slider: ^1.0.0+1 copied to clipboard

discontinued

Flutter slider widget that snaps to given step values and notifies each step change.

step_slider #

Flutter slider widget that snaps to given step values and notifies about step changes.

StepSlider demo

Getting Started #

Add StepSlider to your widget tree along with needed custom arguments:

@override
Widget build(BuildContext context) {
    ...
    child: StepSlider(
        min: 100.0,
        max: 200.0,
        steps: {110, 150, 160, 195},
        initialStep: 150,
        animCurve: Curves.bounceInOut,
        animDuration: Duration(seconds: 1),
        snapMode: SnapMode.value(10),
        hardSnap: true,
        onStepChanged: (it) => print('Step changed to $it.'),
        // ... slider's other args
    ),
}
1
likes
30
pub points
0%
popularity

Publisher

unverified uploader

Flutter slider widget that snaps to given step values and notifies each step change.

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

collection, flutter, quiver_hashcode

More

Packages that depend on step_slider