-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Optimize out LayoutBuilder from ReorderableList children #153987
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
Optimize out LayoutBuilder from ReorderableList children #153987
Conversation
|
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption, contact "@test-exemption-reviewer" in the #hackers channel in Discord (don't just cc them here, they won't see it!). 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. The test exemption team is a small volunteer group, so all reviewers should feel empowered to ask for tests, without delegating that responsibility entirely to the test exemption group. |
662d999 to
68b64ce
Compare
nate-thegrate
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.
Thanks for doing this! LGTM with 1 optional nit.
I guess we'll be good to merge once that test exemption comes through.
|
test-exempt: code refactor with no semantic change |
68b64ce to
fb004e6
Compare
fb004e6 to
95730d5
Compare
|
auto label is removed for flutter/flutter/153987, due to - The status or check suite Mac_x64 framework_tests_misc has failed. Please fix the issues identified (or deflake) before re-applying this label. |
) PR flutter#147863 used a `LayoutBuilder` to ensure `ReorderableList` proxy items are built with the same constraints as their normal counterparts. However we don't actually need the `LayoutBuilder`, we can just grab the constraints from the `RenderBox` at proxy-creation-time.
PR #147863 used a
LayoutBuilderto ensureReorderableListproxy items are built with the same constraints as their normal counterparts. However we don't actually need theLayoutBuilder, we can just grab the constraints from theRenderBoxat proxy-creation-time.Pre-launch Checklist
///).