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 programmatically change selected button in CustomRadioButton? #66

Closed davoutuk closed 1 year ago

davoutuk commented 1 year ago

I have a CustomRadioButton setup to show 7 different values.

I can't find a way of programmatically changing the current radio button selection.

As a user if I click on one of the radio buttons then the display changes as you would expect. However, I have a situation where I want to programmatically change the current radio button setting without user intervention.

Is this possible?

davoutuk commented 1 year ago

I've added a pull request that I would suggest solves this issue

davoutuk commented 1 year ago

Fixed by pull request