group_button icon indicating copy to clipboard operation
group_button copied to clipboard

Consider api deduplication

Open vasilich6107 opened this issue 2 years ago • 1 comments

Currently package has selectedButton selectedButtons

also has _selectedIndexes _selectedIndex

Consider simplifying the api to be more generic. In case of isRadio the _selectedIndexes could be limited to only one item - this will simplifies the api and internal logic

vasilich6107 avatar Dec 31 '21 12:12 vasilich6107

Now this is solved only by factory constructors, which simplify creation of different types buttons. GroupButton.radio() GroupButton.checkbox()

In future, I want to do this at controller level, to simplify package logic and make him more lightweight. But now i don't understand how i can make it.

Frezyx avatar Jan 05 '22 19:01 Frezyx