mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Replace setBoxDecoration() with a decoration property.
R=abarth@chromium.org Review URL: https://codereview.chromium.org/1153893006
This commit is contained in:
parent
f706d82828
commit
2415a118f6
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user