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

How to have buttons take up available parent width

banderberg opened this issue · comments

This is more of a question - but I am placing a GroupButton with two buttons in an Expanded inside of a row, and I expected them to automatically fill out the available width of the Expanded widget but they don't.

How can I do this? I don't want to have to explicitly set the button widths.

Hello @banderberg !
Can you provide some code of your usage experience ?
Not all app, your screen or widget only 😄

I just wrapped in a LayoutBuilder and set the button width to constraints.maxWidth / 2