xxxxxxxxxx
This package helps in creation of Flutter Forms by providing the syntactic sugar for creating a Form Widget and reduce the boilerplate needed to build a form, validate fields, react to changes, and collect the value of the Form
xxxxxxxxxx
Radio(
value: "radio value",
groupValue: "group value",
onChanged: (value){
print(value); //selected value
}
)
//or
RadioListTile(
title: Text("Male"),
value: "male",
groupValue: "male",
onChanged: (value){
setState(() {
});
},
)