Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(683)

Unified Diff: sky/examples/raw/simple_render_tree.dart

Issue 1162033002: Introduce RenderProxyBox and RenderSizedBox (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Now with test Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/examples/raw/sector-layout.dart ('k') | sky/examples/raw/spinning_square.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/raw/simple_render_tree.dart
diff --git a/sky/examples/raw/simple_render_tree.dart b/sky/examples/raw/simple_render_tree.dart
index 7ed385b2d6a252512a470714d0769fa5922cd6a8..1131ad17a028c3ba6ea66d41121a8e87a8b77020 100644
--- a/sky/examples/raw/simple_render_tree.dart
+++ b/sky/examples/raw/simple_render_tree.dart
@@ -10,7 +10,7 @@ class RenderSolidColor extends RenderDecoratedBox {
final Size desiredSize;
final int backgroundColor;
- RenderSolidColor(int backgroundColor, { this.desiredSize })
+ RenderSolidColor(int backgroundColor, { this.desiredSize: const sky.Size.infinite() })
: backgroundColor = backgroundColor,
super(new BoxDecoration(backgroundColor: backgroundColor)) {
}
@@ -41,7 +41,7 @@ void main() {
decoration: new BoxDecoration(backgroundColor: 0xFF000000));
void addFlexChild(RenderFlex parent, int backgroundColor, { int flex: 0 }) {
- RenderNode child = new RenderSolidColor(backgroundColor, desiredSize: new Size.infinite());
+ RenderNode child = new RenderSolidColor(backgroundColor);
parent.add(child);
child.parentData.flex = flex;
}
« no previous file with comments | « sky/examples/raw/sector-layout.dart ('k') | sky/examples/raw/spinning_square.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698