Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 832 Bytes

README.md

File metadata and controls

39 lines (27 loc) · 832 Bytes

unit_slider

iPhone Style horizontal slider in Flutter

How it Looks

Slider Demo

Usage

UnitSlider(
    // min value in slider
    minValue: 1,
    // max value in slider
    maxValue: 5,
    // current value 
    value: 3,
    // this many lines will be shown in UI
    steps: 30,
    // width of a line. default value is 10
    stepWidth: 10,
    // this runs when value in slider is changed
    onChanged: (value) {
    setState(() {
        _currentValue = value;
    });
    },
    backgroundColor : Colors.black,
    indicatorColor : Colors.white,
    lineColor : Colors.grey,
),

Make my day by starring ⭐️ this repo.