Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
01989b7c
Unverified
Commit
01989b7c
authored
Oct 08, 2021
by
nt4f04uNd
Committed by
GitHub
Oct 08, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init (#83028)
parent
7d9f7b4c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
3 deletions
+2
-3
text_selection_toolbar.dart
...ges/flutter/lib/src/cupertino/text_selection_toolbar.dart
+0
-1
text_selection_toolbar.dart
...ages/flutter/lib/src/material/text_selection_toolbar.dart
+1
-1
box.dart
packages/flutter/lib/src/rendering/box.dart
+1
-1
No files found.
packages/flutter/lib/src/cupertino/text_selection_toolbar.dart
View file @
01989b7c
...
...
@@ -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
;
...
...
packages/flutter/lib/src/material/text_selection_toolbar.dart
View file @
01989b7c
...
...
@@ -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.
...
...
packages/flutter/lib/src/rendering/box.dart
View file @
01989b7c
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment