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
ff9bdb2c
Commit
ff9bdb2c
authored
Apr 20, 2016
by
Devon Carew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
redraw the app after a repaint rainbow change (#3420)
parent
d8fe7a85
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
binding.dart
packages/flutter/lib/src/rendering/binding.dart
+13
-6
No files found.
packages/flutter/lib/src/rendering/binding.dart
View file @
ff9bdb2c
...
...
@@ -51,12 +51,7 @@ abstract class Renderer extends Object with Scheduler, Services
if
(
debugPaintSizeEnabled
==
value
)
return
;
debugPaintSizeEnabled
=
value
;
RenderObjectVisitor
visitor
;
visitor
=
(
RenderObject
child
)
{
child
.
markNeedsPaint
();
child
.
visitChildren
(
visitor
);
};
instance
?.
renderView
?.
visitChildren
(
visitor
);
_forceRepaint
();
}
);
return
true
;
...
...
@@ -68,7 +63,10 @@ abstract class Renderer extends Object with Scheduler, Services
name:
'repaintRainbow'
,
getter:
()
=>
debugRepaintRainbowEnabled
,
setter:
(
bool
value
)
{
bool
repaint
=
debugRepaintRainbowEnabled
&&
!
value
;
debugRepaintRainbowEnabled
=
value
;
if
(
repaint
)
_forceRepaint
();
}
);
return
true
;
...
...
@@ -142,6 +140,15 @@ abstract class Renderer extends Object with Scheduler, Services
renderView
.
hitTest
(
result
,
position:
position
);
super
.
hitTest
(
result
,
position
);
}
void
_forceRepaint
()
{
RenderObjectVisitor
visitor
;
visitor
=
(
RenderObject
child
)
{
child
.
markNeedsPaint
();
child
.
visitChildren
(
visitor
);
};
instance
?.
renderView
?.
visitChildren
(
visitor
);
}
}
/// Prints a textual representation of the entire render tree.
...
...
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