Replace setBoxDecoration() with a decoration property.
R=abarth@chromium.org Review URL: https://codereview.chromium.org/1153893006
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user