🙌🏻 立即获取「wordway」,由社区驱动的背单词应用,基于 Flutter 开发。🙌🏻

Slider

Edit this page

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