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

RangeSlider

Edit this page

A Material Design range slider.

Example

double _starValue = 10;
double _endValue = 80;


Widget build(BuildContext context) {
  return RangeSlider(
    values: RangeValues(_starValue, _endValue),
    min: 0.0,
    max: 100.0,
    onChanged: (values){
      setState(() {
        _starValue = values.start.roundToDouble();
        _endValue = values.end.roundToDouble();
      });
    },
  );
}

Related Links