Commit a5a56cbd authored by Adam Barth's avatar Adam Barth

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.
parent 58efa250
...@@ -20,23 +20,22 @@ class Rectangle extends RenderObjectWrapper { ...@@ -20,23 +20,22 @@ class Rectangle extends RenderObjectWrapper {
class ContainerApp extends App { class ContainerApp extends App {
UINode build() { UINode build() {
return new EventListenerNode( return new EventListenerNode(
new BlockContainer(children: [ new Block([
new Container( new Container(
padding: new EdgeDims.all(10.0), padding: new EdgeDims.all(10.0),
margin: new EdgeDims.all(10.0), margin: new EdgeDims.all(10.0),
height: 100.0, height: 100.0,
decoration: new BoxDecoration(backgroundColor: const sky.Color(0xFF00FF00)), decoration: new BoxDecoration(backgroundColor: const sky.Color(0xFF00FF00)),
child: new BlockContainer( child: new Block([
children: [ new Container(
new Container( decoration: new BoxDecoration(backgroundColor: const sky.Color(0xFFFFFF00)),
decoration: new BoxDecoration(backgroundColor: const sky.Color(0xFFFFFF00)), height: 20.0,
height: 20.0, ),
), new Image(src: "https://www.dartlang.org/logos/dart-logo.png",
new Image(src: "https://www.dartlang.org/logos/dart-logo.png", size: new sky.Size(300.0, 300.0),
size: new sky.Size(300.0, 300.0), key: 1
key: 1 ),
), ])),
])),
]), ]),
onPointerDown: _handlePointerDown, onPointerDown: _handlePointerDown,
onGestureTap: _handleGestureTap); onGestureTap: _handleGestureTap);
......
...@@ -212,7 +212,7 @@ class StocksApp extends App { ...@@ -212,7 +212,7 @@ class StocksApp extends App {
), ),
]; ];
addMenuToOverlays(overlays); addMenuToOverlays(overlays);
return new StackContainer(children: overlays); return new Stack(overlays);
} }
} }
......
...@@ -44,7 +44,7 @@ class StockRow extends Component { ...@@ -44,7 +44,7 @@ class StockRow extends Component {
decoration: const BoxDecoration( decoration: const BoxDecoration(
border: const Border( border: const Border(
bottom: const BorderSide(color: const sky.Color(0xFFF4F4F4)))), bottom: const BorderSide(color: const sky.Color(0xFFF4F4F4)))),
child: new FlexContainer(children: children) child: new Flex(children)
) )
]); ]);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment