ketanchoyal / custom_radio_grouped_button

Custom Flutter widgets that makes Checkbox and Radio Buttons much cleaner and easier.
MIT License
150 stars 42 forks source link

how to reduce padding between inner text and border? left and right #60

Open Ednokia777 opened 2 years ago

Ednokia777 commented 2 years ago

I tried to do it but wasn't manage photo_2022-05-29_00-37-44

This is I try to achieve Active .

ketanchoyal commented 2 years ago

try autoWidth and padding properties

Ednokia777 commented 2 years ago

try autoWidth and padding properties

It did't help. I tried to do it

korolkir commented 1 year ago

@Ednokia777 Not sure if it's actual for you or not, but you can wrap CustomRadioButton with Theme and override ButtonThemeData params: Theme( data: Theme.of(context).copyWith(buttonTheme: const ButtonThemeData(minWidth: 0, padding: EdgeInsets.zero)), child: CustomRadioButton(...), ) This will remove padding inside buttons