-
Notifications
You must be signed in to change notification settings - Fork 326
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
Make SemanticsNode.isMergedIntoParent Readonly #6617
Conversation
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.
Sorry for the breakage and thank you for the fix!
The upstream flutter/flutter change removed the isMergedIntoParent
setter because it's no longer needed. The framework now manages that flag for you.
packages/devtools_app/lib/src/shared/primitives/custom_pointer_scroll_view.dart
Outdated
Show resolved
Hide resolved
Is this the correct fix @LongCatIsLooong ? Although not blocking roll since a fix for b/308325747 was already applied we still want this right? |
Yeah the fix LGTM. |
@kenzieschmoll can you take a look? This is going to block the Dart SDK roll into Google. Let me know if we need release notes for this change. For now, I'm going to mark it as exempt. |
_innerNode ??= SemanticsNode(showOnScreen: showOnScreen); | ||
_innerNode! | ||
..isMergedIntoParent = node.isPartOfNodeMerging | ||
..rect = Offset.zero & node.rect.size; | ||
_innerNode!.rect = Offset.zero & node.rect.size; |
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.
can we do instead what is done on flutter master?
(_innerNode ??= SemanticsNode(showOnScreen: showOnScreen)).rect = node.rect;
(Most of the code in this file is copied from scrollable.dart
from the Flutter framework)
Follow up from flutter/flutter#137304
Breaks Google testing (b/308325747)
Pre-launch Checklist
///
).