I'm able to successfully apply the radio button on click on just the radio button but I'm looking for a way around how to apply the onclick of radio of the whole row below is my code :
Row(
children: [
Radio<String>(
value: 'pay',
activeColor: colorBlue,
groupValue: _selectedPaymentMethod,
fillColor: MaterialStateColor.resolveWith(
(states) => Colors.grey[300]),
onChanged: (value) {
setState(() {
_selectedPaymentMethod = value;
});
},
),
Icon(
Icons.monetization_on,
size: 45,
),
SizedBox(
width: 20,
),
Column(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Align(
alignment: Alignment.centerLeft, child: Text("Credit")),
SizedBox(
height: 3,
),
Align(
alignment: Alignment.centerLeft,
child: Text(
"Coming soon!",
style: TextStyle(
color: Colors.grey[400],
fontSize: 12,
fontWeight: FontWeight.normal,
fontFamily: 'Montserrat'),
)),
Align(
alignment: Alignment.centerLeft, child: Text("200USD"))
],
)
],
I will be glad if anyone can help with a work around on how I can apply onclick on the whole Row and get the same value like I do for the Radio in the above code, thanks in advance.