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 5 months ago

muslimmuda15 commented 5 months ago

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

babincc commented 5 months 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
  ),
)