Slider 是一个滑块组件,可用于数量的选择。
const Switch({
Key key,
@required this.value,undefined @required this.onChanged,undefined this.onChangeStart,
this.onChangeEnd,
this.min = 0.0,
this.max = 1.0,
this.divisions,
this.label,undefined this.activeColor,undefined this.inactiveColor,
this.semanticFormatterCallback,
})
activeColor: Colors.blue,
divisions: 10,
inactiveColor: Colors.black12,
label: '标签',
max:10,
min:0,
onChanged: (double){
setState(() {
progressValue=double.roundToDouble();
});
},
onChangeEnd:(double){
print(double);
}
onChangeStart: (double){
print(double);
},
value:8,
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。