-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Implement computeDryBaseline for cupertino RenderBoxes
#145951
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
Implement computeDryBaseline for cupertino RenderBoxes
#145951
Conversation
goderbauer
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.
LGTM
| bool get isAbove => anchorAbove.dy >= (child?.size.height ?? 0.0) - _kToolbarArrowSize.height * 2; | ||
|
|
||
| Offset _computeChildOffset(Size childSize) { | ||
| final bool isAbove = anchorAbove.dy >= childSize.height - _kToolbarArrowSize.height * 2; |
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.
Should we unify this line with the isAbove getter and turn that into a method that takes child size? Child size could default to child.size if not provided.
| final BoxConstraints enforcedConstraint = BoxConstraints( | ||
| minWidth: _kToolbarArrowSize.width + _kToolbarBorderRadius.x * 2, | ||
| ).enforce(constraints.loosen()); |
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.
Also wondering if we should deduplicate this with performLayout and have a method that gives us the child constraints based on provided constraints?
…lutter into cupertino-dry-baseline
|
auto label is removed for flutter/flutter/145951, due to - The status or check suite Windows build_tests_2_7 has failed. Please fix the issues identified (or deflake) before re-applying this label. |
flutter/flutter@d12ba5c...9d32f07 2024-03-31 [email protected] Roll Flutter Engine from 2decefb00d1e to 34081fea4d59 (1 revision) (flutter/flutter#146048) 2024-03-31 [email protected] Roll Flutter Engine from 3588d31a98f6 to 2decefb00d1e (1 revision) (flutter/flutter#146047) 2024-03-30 [email protected] Implement `computeDryBaseline` for cupertino `RenderBox`es (flutter/flutter#145951) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
flutter/flutter@d12ba5c...9d32f07 2024-03-31 [email protected] Roll Flutter Engine from 2decefb00d1e to 34081fea4d59 (1 revision) (flutter/flutter#146048) 2024-03-31 [email protected] Roll Flutter Engine from 3588d31a98f6 to 2decefb00d1e (1 revision) (flutter/flutter#146047) 2024-03-30 [email protected] Implement `computeDryBaseline` for cupertino `RenderBox`es (flutter/flutter#145951) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
The
_debugVerifyDryBaselinesmethod verifies that dry baseline implementation is consistent with the wet baseline method at the current constraints.Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.