| Index: sky/examples/lib/solid_color_box.dart
|
| diff --git a/sky/examples/lib/solid_color_box.dart b/sky/examples/lib/solid_color_box.dart
|
| index bd5426a6eeba9348ac7094ca62ef1a31b1c27cae..6c598e76926c9219da5c68176305de8e01d7d2e7 100644
|
| --- a/sky/examples/lib/solid_color_box.dart
|
| +++ b/sky/examples/lib/solid_color_box.dart
|
| @@ -2,7 +2,8 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -import 'dart:sky';
|
| +import 'dart:sky' as sky;
|
| +import 'package:sky/framework/rendering/object.dart';
|
| import 'package:sky/framework/rendering/box.dart';
|
|
|
| class RenderSolidColorBox extends RenderDecoratedBox {
|
| @@ -41,10 +42,10 @@ class RenderSolidColorBox extends RenderDecoratedBox {
|
| size = constraints.constrain(desiredSize);
|
| }
|
|
|
| - void handlePointer(PointerEvent event) {
|
| + void handleEvent(sky.Event event, BoxHitTestEntry entry) {
|
| if (event.type == 'pointerdown')
|
| decoration = new BoxDecoration(backgroundColor: const Color(0xFFFF0000));
|
| else if (event.type == 'pointerup')
|
| decoration = new BoxDecoration(backgroundColor: backgroundColor);
|
| }
|
| -}
|
| +}
|
|
|