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
39554279
Unverified
Commit
39554279
authored
Apr 23, 2021
by
Michael Goderbauer
Committed by
GitHub
Apr 23, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make compareTo more robust in semantics.dart (#81083)
parent
b0a63c4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
semantics.dart
packages/flutter/lib/src/semantics/semantics.dart
+2
-2
No files found.
packages/flutter/lib/src/semantics/semantics.dart
View file @
39554279
...
@@ -2353,7 +2353,7 @@ class _BoxEdge implements Comparable<_BoxEdge> {
...
@@ -2353,7 +2353,7 @@ class _BoxEdge implements Comparable<_BoxEdge> {
@override
@override
int
compareTo
(
_BoxEdge
other
)
{
int
compareTo
(
_BoxEdge
other
)
{
return
(
offset
-
other
.
offset
).
sign
.
toInt
(
);
return
offset
.
compareTo
(
other
.
offset
);
}
}
}
}
...
@@ -2381,7 +2381,7 @@ class _SemanticsSortGroup extends Comparable<_SemanticsSortGroup> {
...
@@ -2381,7 +2381,7 @@ class _SemanticsSortGroup extends Comparable<_SemanticsSortGroup> {
@override
@override
int
compareTo
(
_SemanticsSortGroup
other
)
{
int
compareTo
(
_SemanticsSortGroup
other
)
{
return
(
startOffset
-
other
.
startOffset
).
sign
.
toInt
(
);
return
startOffset
.
compareTo
(
other
.
startOffset
);
}
}
/// Sorts this group assuming that [nodes] belong to the same vertical group.
/// Sorts this group assuming that [nodes] belong to the same vertical group.
...
...
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