bool checked = false;
Checkbox(
value: checked,
activeColor: Colors.purple,
onChanged: (bool val) {
setState(() {
checked=val;
print(checked);
});
},
)