Skip to content
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

Possibility to style radio buttons? #293

Open
EzraBerendsen opened this issue Mar 24, 2022 · 1 comment
Open

Possibility to style radio buttons? #293

EzraBerendsen opened this issue Mar 24, 2022 · 1 comment

Comments

@EzraBerendsen
Copy link

EzraBerendsen commented Mar 24, 2022

image

As you can see from the screenshot the radio button (using the RadioButtonGroupFieldBlocBuilder widget) is slightly pushed to the right. I believe this is because it's inside of a SizedBox, but correct me if I'm wrong.

What would be the best way to align it to the left side of the screen? I used Transform.translate now, but it feels a bit hacky.

Also I wonder if it's possible to style individual group items and add spacing between them. Since the FieldItem widget isn't very customizable.

@EzraBerendsen EzraBerendsen changed the title Possible to reduce radio button size? Possibility to style radio buttons? Mar 24, 2022
@aaassseee
Copy link
Contributor

@Ezrabeer I don't think the SizedBox slightly pushed the Radio to the right. The reason you think it moved right because the widget Radio has a MaterialTapTargetSize and make the radio button not smaller than kMinInteractiveDimension. So it looks righty to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants