You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wrapped the contet property of Alert in a StatefulBuilder widget.
This widget has a method StateSetter that i called _setState. I passed that method to the RadioListTile. So, is jus call _setState((){
});
instead
setState((){
});
Therefore, the content of alert will be updated and the radiobox, checked!
I am trying to set a RadioList inside alert, I use the setState() to update alert how below reported.
How can I update the alert?
My Code:
Column(
children: [
new RadioListTile(
title: new Text('Accessibile'),
value: 1,
groupValue: radioValue,
onChanged: handleRadioValueChange),
new othersRadioList .....
,
],
),
void handleRadioValueChange(int value) {
print(value);
setState(() {
radioValue = value;
}
The text was updated successfully, but these errors were encountered: