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

Checkbox/Radio size #81334

Open
deakjahn opened this issue Apr 27, 2021 · 1 comment
Open

Checkbox/Radio size #81334

deakjahn opened this issue Apr 27, 2021 · 1 comment
Labels
c: new feature Nothing broken; request for a new capability c: proposal A detailed proposal for a change to Flutter f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. team-design Owned by Design Languages team triaged-design Triaged by Design Languages team

Comments

@deakjahn
Copy link

deakjahn commented Apr 27, 2021

Use case

The Checkbox and Radio widget have fixed sizes that might be too small in some cases, also depending on the overall UI design. An UI with usual icon buttons of the standard size might want to use the same size for these controls as well, especially if they appear near to each other.

Proposal

The suggestion is to add a scale variable to both CheckboxThemeData and RadioThemeData and pass them through to the actual widgets. Individual checkboxes can be manually scaled as:

Transform.scale(scale: 2, child: Checkbox() ...

but this won't help CheckboxListTile where the size remains the same. Changing the underlying widget to use this scaling approach would solve that, too.

@pedromassangocode pedromassangocode added in triage Presently being triaged by the triage team f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. passed first triage c: proposal A detailed proposal for a change to Flutter c: new feature Nothing broken; request for a new capability and removed in triage Presently being triaged by the triage team labels Apr 28, 2021
@danagbemava-nc
Copy link
Member

A similar proposal can be found in #98601

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: new feature Nothing broken; request for a new capability c: proposal A detailed proposal for a change to Flutter f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. team-design Owned by Design Languages team triaged-design Triaged by Design Languages team
Projects
None yet
Development

No branches or pull requests

4 participants