Frezyx / group_button

:sweat_drops: Flutter custom widget to make a group buttons. Included Radio and CheckBox buttons.

Home Page:https://pub.dev/packages/group_button

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adding boolean option to radion button to make selected button can be unselected

gnassro opened this issue · comments

So my proposal is, if we can add an boolean option named like 'isRadioCanBeUnselected':

  • if it true

the selected radio button can be unselected if it tapped again, so the event onSelected: (index, isSelected) will return isSelected = false if the radio button unselected.
What do you think ?

Hello @gnassro !
Yeah, that sounds cool.