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
6a9de1d7
Commit
6a9de1d7
authored
Feb 16, 2016
by
Adam Barth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add docs for RepaintBoundary
parent
2d8780c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
proxy_box.dart
packages/flutter/lib/src/rendering/proxy_box.dart
+1
-1
basic.dart
packages/flutter/lib/src/widgets/basic.dart
+9
-0
No files found.
packages/flutter/lib/src/rendering/proxy_box.dart
View file @
6a9de1d7
...
...
@@ -1361,7 +1361,7 @@ class RenderPointerListener extends RenderProxyBoxWithHitTestBehavior {
}
}
///
Force this subtree to have a layer
///
Creates a separate display list for its child.
///
/// This render object creates a separate display list for its child, which
/// can improve performance if the subtree repaints at different times than
...
...
packages/flutter/lib/src/widgets/basic.dart
View file @
6a9de1d7
...
...
@@ -2152,6 +2152,15 @@ class Listener extends OneChildRenderObjectWidget {
}
}
/// Creates a separate display list for its child.
///
/// This widget creates a separate display list for its child, which
/// can improve performance if the subtree repaints at different times than
/// the surrounding parts of the tree. Specifically, when the child does not
/// repaint but its parent does, we can re-use the display list we recorded
/// previously. Similarly, when the child repaints but the surround tree does
/// not, we can re-record its display list without re-recording the display list
/// for the surround tree.
class
RepaintBoundary
extends
OneChildRenderObjectWidget
{
RepaintBoundary
({
Key
key
,
Widget
child
})
:
super
(
key:
key
,
child:
child
);
RenderRepaintBoundary
createRenderObject
()
=>
new
RenderRepaintBoundary
();
...
...
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