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

Unified Diff: sky/examples/fn2/container.dart

Issue 1166473005: Add BlockContainer to fn2 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « no previous file | sky/sdk/lib/framework/fn2.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/fn2/container.dart
diff --git a/sky/examples/fn2/container.dart b/sky/examples/fn2/container.dart
index 5cb9910dda9c40330a8614bb5f13f5d860dd2861..0c65e4e9748fdf405c90dc08f0b3767845e47ff4 100644
--- a/sky/examples/fn2/container.dart
+++ b/sky/examples/fn2/container.dart
@@ -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);
}
« no previous file with comments | « no previous file | sky/sdk/lib/framework/fn2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698