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

Unified Diff: sky/sdk/lib/framework/fn2.dart

Issue 1163633003: Port DrawerHeader to fn2 world. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: remove sky. Created 5 years, 6 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
Index: sky/sdk/lib/framework/fn2.dart
diff --git a/sky/sdk/lib/framework/fn2.dart b/sky/sdk/lib/framework/fn2.dart
index ac53ccdcb58c21c8080d61be665c8fc82ceb7e2e..3527faf703810f712de136901389d66bb4d44855 100644
--- a/sky/sdk/lib/framework/fn2.dart
+++ b/sky/sdk/lib/framework/fn2.dart
@@ -407,8 +407,11 @@ class SizedBox extends OneChildRenderObjectWrapper {
RenderSizedBox root;
final Size desiredSize;
- SizedBox({ this.desiredSize, UINode child, Object key })
- : super(child: child, key: key);
+ SizedBox({
+ this.desiredSize: sky.Size.infinite,
+ UINode child,
+ Object key
+ }) : super(child: child, key: key);
RenderSizedBox createNode() => new RenderSizedBox(desiredSize: desiredSize);
@@ -966,6 +969,9 @@ class Container extends Component {
if (transform != null)
current = new Transform(transform: transform, child: current);
+ if (current == null)
+ current = new SizedBox();
+
return current;
}
}
« no previous file with comments | « sky/sdk/lib/framework/components2/drawer_header.dart ('k') | sky/sdk/lib/framework/theme2/view_configuration.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698