Skip to content
On this page

Slider

Slider demo

A representation of Slider.

NikuSlider accepts all the props as same as Slider.

// Using namespace
n.Slider(50);

// Using Niku Prefix
NikuSlider(50);

Example Usage

n.Slider(50)
    ..min = 0
    ..max = 100
    ..labels = RangeLabels(start.n, end.n);
    ..divisions = 5
    ..onChanged = updateState

Customization

n.Slider(value)
    ..label = value.toString();
    ..overlayColor = Colors.white.withOpacity(.125)
    ..activeTrackColor = Colors.white.withOpacity(.75)
    ..inactiveTrackColor = Colors.white.withOpacity(.25)

Change Thumb Shape

n.RangeSlider(50)
    ..trackHeight = 2
    ..thumbShape = RoundSliderThumbShape(enabledThumbRadius: 6);

Defination

View Defination on pub.dev