From a5a56cbdc1ea4260ca7530c498793c24266c3395 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Wed, 10 Jun 2015 15:34:30 -0700 Subject: [PATCH] Rename BlockContainer, StackContainer, and FlexContainer These are now called Block, Stack, and Flex, respectively. Less verbose. R=jackson@google.com, ianh@google.com Review URL: https://codereview.chromium.org/1181533002. --- examples/fn2/container.dart | 23 +++++++++++------------ examples/stocks2/lib/stock_app.dart | 2 +- examples/stocks2/lib/stock_row.dart | 2 +- 3 files changed, 13 insertions(+), 14 deletions(-) diff --git a/examples/fn2/container.dart b/examples/fn2/container.dart index 650775af7a..f1eec6bbea 100644 --- a/examples/fn2/container.dart +++ b/examples/fn2/container.dart @@ -20,23 +20,22 @@ class Rectangle extends RenderObjectWrapper { class ContainerApp extends App { UINode build() { return new EventListenerNode( - new BlockContainer(children: [ + new Block([ new Container( padding: new EdgeDims.all(10.0), margin: new EdgeDims.all(10.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)), - height: 20.0, - ), - new Image(src: "https://www.dartlang.org/logos/dart-logo.png", - size: new sky.Size(300.0, 300.0), - key: 1 - ), - ])), + child: new Block([ + new Container( + decoration: new BoxDecoration(backgroundColor: const sky.Color(0xFFFFFF00)), + height: 20.0, + ), + new Image(src: "https://www.dartlang.org/logos/dart-logo.png", + size: new sky.Size(300.0, 300.0), + key: 1 + ), + ])), ]), onPointerDown: _handlePointerDown, onGestureTap: _handleGestureTap); diff --git a/examples/stocks2/lib/stock_app.dart b/examples/stocks2/lib/stock_app.dart index fd2b2f1990..c13af8c88f 100644 --- a/examples/stocks2/lib/stock_app.dart +++ b/examples/stocks2/lib/stock_app.dart @@ -212,7 +212,7 @@ class StocksApp extends App { ), ]; addMenuToOverlays(overlays); - return new StackContainer(children: overlays); + return new Stack(overlays); } } diff --git a/examples/stocks2/lib/stock_row.dart b/examples/stocks2/lib/stock_row.dart index 46563dda93..1ecb068469 100644 --- a/examples/stocks2/lib/stock_row.dart +++ b/examples/stocks2/lib/stock_row.dart @@ -44,7 +44,7 @@ class StockRow extends Component { decoration: const BoxDecoration( border: const Border( bottom: const BorderSide(color: const sky.Color(0xFFF4F4F4)))), - child: new FlexContainer(children: children) + child: new Flex(children) ) ]); }