Commit 11d50579 authored by Adam Barth's avatar Adam Barth

Add BlockContainer to fn2

BlockContainer uses a RenderBlock to lay out its children.

R=eseidel@chromium.org, jackson@chromium.org

Review URL: https://codereview.chromium.org/1166473005
parent e0fc6df9
......@@ -8,7 +8,11 @@ import 'package:sky/framework/fn2.dart';
class ContainerApp extends App {
UINode build() {
return new EventListenerNode(
new Rectangle(0xFF00FFFF),
new BlockContainer(children: [
new Rectangle(0xFF00FFFF, key: 1),
new Rectangle(0xFF00FF00, key: 2),
new Rectangle(0xFF0000FF, key: 3)
]),
onPointerDown: _handlePointerDown);
}
......
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