babincc / flutter_workshop

This repo houses add-ons, plug-ins, and helpful code to make Flutter programming easier.
5 stars 1 forks source link

Spacing Beetwen Radio Button #18

Closed muslimmuda15 closed 1 week ago

muslimmuda15 commented 2 weeks ago

How to add spacing between radio button when orientation is veertical?

babincc commented 1 week ago

I have just published a new update (version 3.2.0), which allows for custom vertical spacing.

Just use the spacing parameter in the RadioGroupDecoration which goes in the RadioGroup's decoration field.

RadioGroup(
  controller: myController,
  values: myValues,
  decoration: const RadioGroupDecoration(
      spacing: 10.0, // This value here
  ),
)