Skip to content

arjunQ21/unit_slider_flutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

iPhone style horizontal slider in flutter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published