Checkbox 是一个复选框组件,通常用于设置的选项里。
const Checkbox({
Key key,
this.activeColor,
this.tristate,
this.value,
this.onChanged
})
activeColor:Colors.blue,
tristate: true,
value: false,
onChanged: (bool value) {
setState(() {
this.check = !this.check;
});
},