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
4dc19e3f
Commit
4dc19e3f
authored
Jan 29, 2016
by
Devon Carew
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1479 from devoncarew/strong_mode_issues
fix two strong mode issues
parents
5af87aaf
e1a7d7d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
semantics_debugger.dart
packages/flutter/lib/src/widgets/semantics_debugger.dart
+4
-2
No files found.
packages/flutter/lib/src/widgets/semantics_debugger.dart
View file @
4dc19e3f
...
...
@@ -123,7 +123,9 @@ class _SemanticsDebuggerEntry {
int
findDepth
()
{
if
(
children
==
null
||
children
.
isEmpty
)
return
1
;
return
children
.
map
((
_SemanticsDebuggerEntry
e
)
=>
e
.
findDepth
()).
reduce
(
math
.
max
)
+
1
;
return
children
.
map
((
_SemanticsDebuggerEntry
e
)
=>
e
.
findDepth
()).
reduce
((
int
runningDepth
,
int
nextDepth
)
{
return
math
.
max
(
runningDepth
,
nextDepth
);
})
+
1
;
}
static
const
TextStyle
textStyles
=
const
TextStyle
(
...
...
@@ -346,7 +348,7 @@ class _SemanticsDebuggerPainter extends CustomPainter {
final
Point
pointerPosition
;
void
paint
(
Canvas
canvas
,
Size
size
)
{
_SemanticsDebuggerClient
.
instance
.
nodes
[
0
]?.
paint
(
canvas
,
canvas
,
_SemanticsDebuggerClient
.
instance
.
nodes
[
0
].
findDepth
()
);
if
(
pointerPosition
!=
null
)
{
...
...
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