| OLD | NEW |
| 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 import 'package:sky/framework/rendering/box.dart'; | 7 import 'package:sky/framework/rendering/box.dart'; |
| 8 import '../lib/solid_color_box.dart'; | 8 import '../lib/solid_color_box.dart'; |
| 9 | 9 |
| 10 class Rectangle extends RenderNodeWrapper { | 10 class Rectangle extends RenderObjectWrapper { |
| 11 RenderSolidColorBox root; | 11 RenderSolidColorBox root; |
| 12 RenderSolidColorBox createNode() => | 12 RenderSolidColorBox createNode() => |
| 13 new RenderSolidColorBox(color, desiredSize: new sky.Size(40.0, 130.0)); | 13 new RenderSolidColorBox(color, desiredSize: new sky.Size(40.0, 130.0)); |
| 14 | 14 |
| 15 final int color; | 15 final int color; |
| 16 | 16 |
| 17 Rectangle(this.color, { Object key }) : super(key: key); | 17 Rectangle(this.color, { Object key }) : super(key: key); |
| 18 } | 18 } |
| 19 | 19 |
| 20 class ContainerApp extends App { | 20 class ContainerApp extends App { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 47 } | 47 } |
| 48 | 48 |
| 49 void _handleGestureTap(sky.GestureEvent event) { | 49 void _handleGestureTap(sky.GestureEvent event) { |
| 50 print("_handleGestureTap"); | 50 print("_handleGestureTap"); |
| 51 } | 51 } |
| 52 } | 52 } |
| 53 | 53 |
| 54 void main() { | 54 void main() { |
| 55 new ContainerApp(); | 55 new ContainerApp(); |
| 56 } | 56 } |
| OLD | NEW |