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
8d5d37d6
Unverified
Commit
8d5d37d6
authored
Sep 20, 2021
by
Pierre-Louis
Committed by
GitHub
Sep 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Exclude semantics is semanticslabel is present (#90136)
parent
ff6f7112
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
12 deletions
+5
-12
selectable_text.dart
packages/flutter/lib/src/material/selectable_text.dart
+1
-0
selectable_text_test.dart
packages/flutter/test/widgets/selectable_text_test.dart
+4
-12
No files found.
packages/flutter/lib/src/material/selectable_text.dart
View file @
8d5d37d6
...
...
@@ -704,6 +704,7 @@ class _SelectableTextState extends State<SelectableText> with AutomaticKeepAlive
return
Semantics
(
label:
widget
.
semanticsLabel
,
excludeSemantics:
widget
.
semanticsLabel
!=
null
,
onLongPress:
()
{
_effectiveFocusNode
.
requestFocus
();
},
...
...
packages/flutter/test/widgets/selectable_text_test.dart
View file @
8d5d37d6
...
...
@@ -2251,20 +2251,12 @@ void main() {
expect
(
semantics
,
hasSemantics
(
TestSemantics
.
root
(
children:
<
TestSemantics
>[
TestSemantics
.
rootChild
(
TestSemantics
(
id:
1
,
textDirection:
TextDirection
.
ltr
,
actions:
<
SemanticsAction
>[
SemanticsAction
.
longPress
]
,
label:
'German greeting for good day'
,
value:
'Guten Tag'
,
actions:
<
SemanticsAction
>[
SemanticsAction
.
longPress
,
],
flags:
<
SemanticsFlag
>[
SemanticsFlag
.
isTextField
,
SemanticsFlag
.
isReadOnly
,
SemanticsFlag
.
isMultiline
,
],
),
textDirection:
TextDirection
.
ltr
,
)
],
),
ignoreTransform:
true
,
ignoreRect:
true
));
});
...
...
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