I have of many checkboxes as You can see the image uploaded, please see the image first.
Now the problem is that you can see the 3 cards views Conditions, Allergies and Past Surgeries. and all of these cards contains checkboxes and now what happens is that when I check or uncheck any box in Conditions Card so it works properly, but when I check or uncheck the box in allergies or Past Surgeries card the UI of the box does not change until I click on the Conditions Box.
What am I doing wrong and I will share the checkboxes codes also.
CONDITIONS
Checkbox(
value: condition.selected,
onChanged: (value) {
setState(() {
_conditions[i].selected = value;
});
}),
ALLERGIES
Checkbox(
value: allergy.selected,
onChanged: (value) {
_allergies[i].selected = value;
}),
PAST SURGERIES
Checkbox(
value: surgery.selected,
onChanged: (value) {
_surgeries[i].selected = value;
}),
PLEASE HELP ME...
Aucun commentaire:
Enregistrer un commentaire