-
Notifications
You must be signed in to change notification settings - Fork 26.7k
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
Update icon button splash radius to prevent overflow in appbar #64717
Conversation
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat. Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
Updated dartdoc comments to match changes
@Hixie, please exempt this PR from tests as it only updates the value of the |
@TahaTesser , @pedromassango , @dnfield |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not change the default for sake of a different widget. Is it not possible to set the parameter when. Using this in an app bar?
This also is too small for a11y guidelines.
@dnfield , it is possible to manually set the splashRadius, however it is not possible to set it for auto generated |
This change affects the size of the whole button, not just the splash radius. |
@dnfield , I am really sorry, I meant to change the splash radius. |
Updated `splashRadius`. Reverted changes to `iconSize`
It's still not clear to me why we would change the default here. Someone from material would know better but this is probably not what the spec wants now. Ill comment on your issue as well, but why not just pass your desired radius for app bars instead of changing it everywhere? I would also expect this change to fail tests. |
@dnfield , as you suggested, the |
I have set the value as 20 because it is approximately the maximum value that does not cause the splash to overflow in accordance with the |
The overflow is intentional, though maybe the material spec has changed since we implemented this. In any case, this kind of change would definitely need tests. (Probably golden image tests.) |
Please follow up on #64789 |
Solves issue #64702
Description
As mentioned in issue #64702 , the icon button splash (which is auto generated) always overflows. Hence by reducing the splash radius, the overflow is prevented.
Related Issues
Issue #64702
Checklist
flutter analyze --flutter-repo
) does not report any problems on my PR.Breaking Change