-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When isRadio is true it starts with first button selected #12
Comments
Hello @roberto77mi 👋🏻 Thank you for this issue ! |
Now your example will work according to the principle that you described. |
Hi @Frezyx , I'm using the latest version of the plugin, but the functionality OP suggested is still not available for me. Here is an example :
I want both radio buttons (Male and Female) to be in unselected state when it's first rendered, until user selects an option. Am I missing anything here? |
Hello @ramith-ascentic 👋🏻 |
Now i publish this changes to pub.dev. Have a good day ! |
Awesome! Thanks for the update, works great! |
@Frezyx I don't know why, but i still have this bug: |
@Frezyx More debbugging here: |
And it comes because https://github.com/Frezyx/group_button/blob/master/lib/src/group_button_body.dart#L60 selected index is always 0. |
When I user isRadio=true I expect the options to be rendered with all button unselected. That would match how radio buttons work in HTML for example.
Right now, the first option is selected. In the example below, button A is selected automatically.
The text was updated successfully, but these errors were encountered: