Skip to content

Conversation

@LongCatIsLooong
Copy link
Contributor

@LongCatIsLooong LongCatIsLooong commented Mar 29, 2024

The _debugVerifyDryBaselines method 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.

@github-actions github-actions bot added a: text input Entering text in a text field or keyboard related problems framework flutter/packages/flutter repository. See also f: labels. f: cupertino flutter/packages/flutter/cupertino repository labels Mar 29, 2024
Copy link
Member

@goderbauer goderbauer left a 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;
Copy link
Member

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.

Comment on lines 292 to 294
final BoxConstraints enforcedConstraint = BoxConstraints(
minWidth: _kToolbarArrowSize.width + _kToolbarBorderRadius.x * 2,
).enforce(constraints.loosen());
Copy link
Member

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?

@LongCatIsLooong LongCatIsLooong added the autosubmit Merge PR when tree becomes green via auto submit App label Mar 30, 2024
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Mar 30, 2024
@auto-submit
Copy link
Contributor

auto-submit bot commented Mar 30, 2024

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.

@LongCatIsLooong LongCatIsLooong added the autosubmit Merge PR when tree becomes green via auto submit App label Mar 30, 2024
@auto-submit auto-submit bot merged commit ff284c5 into flutter:master Mar 30, 2024
@LongCatIsLooong LongCatIsLooong deleted the cupertino-dry-baseline branch March 30, 2024 21:39
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 31, 2024
tarrinneal pushed a commit to flutter/packages that referenced this pull request Apr 1, 2024
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
TecHaxter pushed a commit to TecHaxter/flutter_packages that referenced this pull request May 22, 2024
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: text input Entering text in a text field or keyboard related problems autosubmit Merge PR when tree becomes green via auto submit App f: cupertino flutter/packages/flutter/cupertino repository framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants