fix small bug

merge-requests/444/head
Elham Rababah 4 years ago
parent 08a22d949c
commit 518b09454b

@ -104,14 +104,14 @@ class _MasterKeyCheckboxSearchWidgetState extends State<MasterKeyCheckboxSearchW
widget.isServiceSelected(historyInfo),
activeColor: Colors.red[800],
onChanged: (bool newValue) {
// setState(() {
// if (widget
// .isServiceSelected(historyInfo)) {
// widget.removeHistory(historyInfo);
// } else {
// widget.addHistory(historyInfo);
// }
// });
setState(() {
if (widget
.isServiceSelected(historyInfo)) {
widget.removeHistory(historyInfo);
} else {
widget.addHistory(historyInfo);
}
});
}),
Expanded(
child: Padding(

Loading…
Cancel
Save