📅  最后修改于: 2022-03-11 14:48:06.038000             🧑  作者: Mango
bool isChecked = false;
Checkbox(
activeColor: Colors.red, //The color to use when this checkbox is checked.
checkColor: Colors.black, // The color to use for the check icon when this checkbox is checked.
value: isChecked,
onChanged: (value) {
setState(() {
isChecked = value!;
});
},
),