Unverified Commit 01989b7c authored by nt4f04uNd's avatar nt4f04uNd Committed by GitHub

init (#83028)

parent 7d9f7b4c
...@@ -898,7 +898,6 @@ class _RenderCupertinoTextSelectionToolbarItems extends RenderBox with Container ...@@ -898,7 +898,6 @@ class _RenderCupertinoTextSelectionToolbarItems extends RenderBox with Container
@override @override
bool hitTestChildren(BoxHitTestResult result, { required Offset position }) { bool hitTestChildren(BoxHitTestResult result, { required Offset position }) {
// Hit test list children. // Hit test list children.
// The x, y parameters have the top left of the node's box as the origin.
RenderBox? child = lastChild; RenderBox? child = lastChild;
while (child != null) { while (child != null) {
final ToolbarItemsParentData childParentData = child.parentData! as ToolbarItemsParentData; final ToolbarItemsParentData childParentData = child.parentData! as ToolbarItemsParentData;
......
...@@ -599,9 +599,9 @@ class _RenderTextSelectionToolbarItemsLayout extends RenderBox with ContainerRen ...@@ -599,9 +599,9 @@ class _RenderTextSelectionToolbarItemsLayout extends RenderBox with ContainerRen
@override @override
bool hitTestChildren(BoxHitTestResult result, { required Offset position }) { 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; RenderBox? child = lastChild;
while (child != null) { 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; final ToolbarItemsParentData childParentData = child.parentData! as ToolbarItemsParentData;
// Don't hit test children aren't shown. // Don't hit test children aren't shown.
......
...@@ -2762,9 +2762,9 @@ mixin RenderBoxContainerDefaultsMixin<ChildType extends RenderBox, ParentDataTyp ...@@ -2762,9 +2762,9 @@ mixin RenderBoxContainerDefaultsMixin<ChildType extends RenderBox, ParentDataTyp
/// * [defaultPaint], which paints the children appropriate for this /// * [defaultPaint], which paints the children appropriate for this
/// hit-testing strategy. /// hit-testing strategy.
bool defaultHitTestChildren(BoxHitTestResult result, { required Offset position }) { 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; ChildType? child = lastChild;
while (child != null) { 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 ParentDataType childParentData = child.parentData! as ParentDataType;
final bool isHit = result.addWithPaintOffset( final bool isHit = result.addWithPaintOffset(
offset: childParentData.offset, offset: childParentData.offset,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment