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

Consider adding onChage method with button values

vasilich6107 opened this issue · comments

It would be great to have the api that allows setting selected buttons not by index but with actual buttons values.
For example while using in forms

Also it would be great to have onChange method with selected button values

I'm going to make a GroupButton with possibility of generic value types in 5.0.0 version
The idea is very good! I also need this functionality in my personal projects.

Hello @vasilich6107 !
This feature is available in new 5.0.0 package release

@Frezyx this is not what was requested.
The onSelected method gives only the current selected value.
What is required - onChange method with all selected values.

It is not comfortable to operate with indexes.
While using the onSelected method user have to get values by indexes, he also have to handle index deletions rather than simply using the control.

@Frezyx this is not what was requested. The onSelected method gives only the current selected value. What is required - onChange method with all selected values.

It is not comfortable to operate with indexes. While using the onSelected method user have to get values by indexes, he also have to handle index deletions rather than simply using the control.

I agree too. and @Frezyx please consider adding an option to choose regular old buttons