I am using default Flutter Radio Widget. I want to increase its size but there is no property available for it.
Tried using SizedBox with width: 50, height: 50. Didn't help.
Not want to implement a whole custom radio button. Just want to increase the default's size. Thanks
A radio button can be selected by clicking the mouse on the circular hole or using a keyboard shortcut. In this section, we are going to explain how to use radio buttons in Flutter. Flutter allows us to use radio buttons with the help of 'Radio', 'RadioListTile', or 'ListTitle' Widgets.
The easiest way to achieve this is by wrapping the Radio without any padding, in a Container and then setting your custom Margin and Padding as(if) required.
To change radio button color in Flutter, add fillColor property to the Radio widget. Inside the fillColor use the MaterialStateColor to add the color of your choice.
Well you can wrap it in Transform.Scale then use the scale property to increase it.
Transform.scale(
scale: 2.0,
child: Radio(
value: 'wire',
groupValue: selectedRadio,
onChanged: (value)=>radioSelected(value),
activeColor: Color(0xffFFBD11),
),
),
I don't think this is possible without creating your own Widget.
You should have a look at this package.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With