mirror of
https://github.com/flutter/flutter
synced 2024-10-12 11:12:54 +00:00
init (#83028)
This commit is contained in:
parent
7d9f7b4ca1
commit
01989b7c25
|
@ -898,7 +898,6 @@ class _RenderCupertinoTextSelectionToolbarItems extends RenderBox with Container
|
|||
@override
|
||||
bool hitTestChildren(BoxHitTestResult result, { required Offset position }) {
|
||||
// Hit test list children.
|
||||
// The x, y parameters have the top left of the node's box as the origin.
|
||||
RenderBox? child = lastChild;
|
||||
while (child != null) {
|
||||
final ToolbarItemsParentData childParentData = child.parentData! as ToolbarItemsParentData;
|
||||
|
|
|
@ -599,9 +599,9 @@ class _RenderTextSelectionToolbarItemsLayout extends RenderBox with ContainerRen
|
|||
|
||||
@override
|
||||
bool hitTestChildren(BoxHitTestResult result, { required Offset position }) {
|
||||
// The x, y parameters have the top left of the node's box as the origin.
|
||||
RenderBox? child = lastChild;
|
||||
while (child != null) {
|
||||
// The x, y parameters have the top left of the node's box as the origin.
|
||||
final ToolbarItemsParentData childParentData = child.parentData! as ToolbarItemsParentData;
|
||||
|
||||
// Don't hit test children aren't shown.
|
||||
|
|
|
@ -2762,9 +2762,9 @@ mixin RenderBoxContainerDefaultsMixin<ChildType extends RenderBox, ParentDataTyp
|
|||
/// * [defaultPaint], which paints the children appropriate for this
|
||||
/// hit-testing strategy.
|
||||
bool defaultHitTestChildren(BoxHitTestResult result, { required Offset position }) {
|
||||
// The x, y parameters have the top left of the node's box as the origin.
|
||||
ChildType? child = lastChild;
|
||||
while (child != null) {
|
||||
// The x, y parameters have the top left of the node's box as the origin.
|
||||
final ParentDataType childParentData = child.parentData! as ParentDataType;
|
||||
final bool isHit = result.addWithPaintOffset(
|
||||
offset: childParentData.offset,
|
||||
|
|
Loading…
Reference in a new issue