From 01989b7c2523a81237209ad67b2403e1bede708f Mon Sep 17 00:00:00 2001 From: nt4f04uNd Date: Fri, 8 Oct 2021 03:18:02 +0300 Subject: [PATCH] init (#83028) --- packages/flutter/lib/src/cupertino/text_selection_toolbar.dart | 1 - packages/flutter/lib/src/material/text_selection_toolbar.dart | 2 +- packages/flutter/lib/src/rendering/box.dart | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/flutter/lib/src/cupertino/text_selection_toolbar.dart b/packages/flutter/lib/src/cupertino/text_selection_toolbar.dart index fe3486c025d..345637931a2 100644 --- a/packages/flutter/lib/src/cupertino/text_selection_toolbar.dart +++ b/packages/flutter/lib/src/cupertino/text_selection_toolbar.dart @@ -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; diff --git a/packages/flutter/lib/src/material/text_selection_toolbar.dart b/packages/flutter/lib/src/material/text_selection_toolbar.dart index 229159a79f5..6ab1c39ce27 100644 --- a/packages/flutter/lib/src/material/text_selection_toolbar.dart +++ b/packages/flutter/lib/src/material/text_selection_toolbar.dart @@ -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. diff --git a/packages/flutter/lib/src/rendering/box.dart b/packages/flutter/lib/src/rendering/box.dart index 4d6b63394af..84c6dcf6ba9 100644 --- a/packages/flutter/lib/src/rendering/box.dart +++ b/packages/flutter/lib/src/rendering/box.dart @@ -2762,9 +2762,9 @@ mixin RenderBoxContainerDefaultsMixin