Slider

A Material Design slider.

Example

double _progress = 0;


Widget build(BuildContext context) {
  return Slider(
    value: _progress,
    label: '$_progress',
    min: 0.0,
    max: 100.0,
    onChanged: (value){
      setState(() {
        _progress = value.roundToDouble();
      });
    },
  );
}

Related Links