From 086c921ccd1e4fe5e006dbca3d8e0c27fa8d9790 Mon Sep 17 00:00:00 2001 From: Hixie Date: Mon, 8 Jun 2015 14:36:19 -0700 Subject: [PATCH] Rename Container's desiredSize argument to width and height arguments. Also change SizedBox. This makes the code that uses Container() and SizedBox() much more readable. The underlying RenderSizedBox is not affected by this change. R=abarth@chromium.org, eseidel@chromium.org Review URL: https://codereview.chromium.org/1166203002 --- engine/src/flutter/examples/fn2/container.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/examples/fn2/container.dart b/engine/src/flutter/examples/fn2/container.dart index 6cd56c16498..650775af7af 100644 --- a/engine/src/flutter/examples/fn2/container.dart +++ b/engine/src/flutter/examples/fn2/container.dart @@ -24,13 +24,13 @@ class ContainerApp extends App { new Container( padding: new EdgeDims.all(10.0), margin: new EdgeDims.all(10.0), - desiredSize: new sky.Size(double.INFINITY, 100.0), + height: 100.0, decoration: new BoxDecoration(backgroundColor: const sky.Color(0xFF00FF00)), child: new BlockContainer( children: [ new Container( decoration: new BoxDecoration(backgroundColor: const sky.Color(0xFFFFFF00)), - desiredSize: new sky.Size(double.INFINITY, 20.0) + height: 20.0, ), new Image(src: "https://www.dartlang.org/logos/dart-logo.png", size: new sky.Size(300.0, 300.0),