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

Side by Side 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, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | sky/sdk/lib/framework/fn2.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 import 'dart:sky' as sky; 5 import 'dart:sky' as sky;
6 import 'package:sky/framework/fn2.dart'; 6 import 'package:sky/framework/fn2.dart';
7 7
8 class ContainerApp extends App { 8 class ContainerApp extends App {
9 UINode build() { 9 UINode build() {
10 return new EventListenerNode( 10 return new EventListenerNode(
11 new Rectangle(0xFF00FFFF), 11 new BlockContainer(children: [
12 new Rectangle(0xFF00FFFF, key: 1),
13 new Rectangle(0xFF00FF00, key: 2),
14 new Rectangle(0xFF0000FF, key: 3)
15 ]),
12 onPointerDown: _handlePointerDown); 16 onPointerDown: _handlePointerDown);
13 } 17 }
14 18
15 void _handlePointerDown(sky.PointerEvent event) { 19 void _handlePointerDown(sky.PointerEvent event) {
16 print("_handlePointerDown"); 20 print("_handlePointerDown");
17 } 21 }
18 } 22 }
19 23
20 void main() { 24 void main() {
21 new ContainerApp(); 25 new ContainerApp();
22 } 26 }
OLDNEW
« 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