diff --git a/examples/raw/simple_render_tree.dart b/examples/raw/simple_render_tree.dart index 7740970d99b..552cf552d95 100644 --- a/examples/raw/simple_render_tree.dart +++ b/examples/raw/simple_render_tree.dart @@ -30,9 +30,9 @@ class RenderSolidColor extends RenderDecoratedBox { void handlePointer(PointerEvent event) { if (event.type == 'pointerdown') - setBoxDecoration(new BoxDecoration(backgroundColor: 0xFFFF0000)); + decoration = new BoxDecoration(backgroundColor: 0xFFFF0000); else if (event.type == 'pointerup') - setBoxDecoration(new BoxDecoration(backgroundColor: backgroundColor)); + decoration = new BoxDecoration(backgroundColor: backgroundColor); } }