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

Unified Diff: sky/sdk/example/rendering/simple_autolayout.dart

Issue 1230033002: [AutoLayout] Address further concerns raised in https://codereview.chromium.org/1230583003 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 5 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 | « no previous file | sky/sdk/lib/rendering/auto_layout.dart » ('j') | sky/sdk/lib/rendering/auto_layout.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/example/rendering/simple_autolayout.dart
diff --git a/sky/sdk/example/rendering/simple_autolayout.dart b/sky/sdk/example/rendering/simple_autolayout.dart
index 3c8d6038a9077c6ff457ccc4f996d6c82a6eb159..23817fc9cf078a8e40bdc9766c49a8d759bdf2e4 100644
--- a/sky/sdk/example/rendering/simple_autolayout.dart
+++ b/sky/sdk/example/rendering/simple_autolayout.dart
@@ -10,23 +10,23 @@ import 'package:sky/rendering/auto_layout.dart';
import 'package:cassowary/cassowary.dart' as al;
void main() {
- var c1 = new RenderDecoratedBox(
+ RenderDecoratedBox c1 = new RenderDecoratedBox(
decoration: new BoxDecoration(backgroundColor: const Color(0xFFFF0000))
);
- var c2 = new RenderDecoratedBox(
+ RenderDecoratedBox c2 = new RenderDecoratedBox(
decoration: new BoxDecoration(backgroundColor: const Color(0xFF00FF00))
);
- var c3 = new RenderDecoratedBox(
+ RenderDecoratedBox c3 = new RenderDecoratedBox(
decoration: new BoxDecoration(backgroundColor: const Color(0xFF0000FF))
);
- var c4 = new RenderDecoratedBox(
+ RenderDecoratedBox c4 = new RenderDecoratedBox(
decoration: new BoxDecoration(backgroundColor: const Color(0xFFFFFFFF))
);
- var root = new RenderAutoLayout(children: [c1, c2, c3, c4]);
+ RenderAutoLayout root = new RenderAutoLayout(children: [c1, c2, c3, c4]);
AutoLayoutParentData p1 = c1.parentData;
AutoLayoutParentData p2 = c2.parentData;
« no previous file with comments | « no previous file | sky/sdk/lib/rendering/auto_layout.dart » ('j') | sky/sdk/lib/rendering/auto_layout.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698