-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Fix intrinsic width of input decorator #138074
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
Fix intrinsic width of input decorator #138074
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 or stuartmorgan on the #hackers channel in Chat (don't just cc them here, they won't see it! Use Discord!). If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
|
I'm unsure how to run a flutter app with my local changes so I can't get a screen shot of the fix. Can someone help me figure out how to do this? |
|
I would also like help on how I would write a test for this change. |
I think you could check the location of the left-most component and the right-most component and see if the horizontal distance they cover is the same as the width |
|
I added a test which showed that I also had to fix the max intrinsic width. |
8054de2 to
2fe03a1
Compare
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.
nit: consider making 0 -> 0.0 per style guidelines. Here and in other places in this PR.
Renzo-Olivares
left a comment
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.
Hi @neko-andrew, thanks for the contribution. This change LGTM just had a small nit. I also see similar logic to calculate the input width in _layout.
|
Seems like "Google testing" failed. The details don't really provide any information. What does this mean? |
2fe03a1 to
33952a3
Compare
33952a3 to
79a80e1
Compare
|
Can I get help with the failing "Google Testing"? |
|
The internal golden changes LGTM. Sorry for the delay! |
|
What is the process of getting these changes into a hot fix? |
Fix min intrinsic width of input decorator by removing left or right padding when `prefixIcon` or `suffixIcon` are used. Fixes flutter#137937.
Fix min intrinsic width of input decorator by removing left or right padding when `prefixIcon` or `suffixIcon` are used. Fixes flutter#137937.
Fix min intrinsic width of input decorator by removing left or right padding when
prefixIconorsuffixIconare used.Fixes #137937.
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.