Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: sky/examples/raw/sector-layout.dart

Issue 1153273002: Fix compilation errors in render-sector.dart (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/raw/sector-layout.dart
diff --git a/sky/examples/raw/sector-layout.dart b/sky/examples/raw/sector-layout.dart
index 825663843c8cb1cbc492529ad7b678baf5c95842..3b6d388edf96a9d4819d3d89489904e424d960de 100644
--- a/sky/examples/raw/sector-layout.dart
+++ b/sky/examples/raw/sector-layout.dart
@@ -94,7 +94,6 @@ abstract class RenderSector extends RenderNode {
}
class RenderDecoratedSector extends RenderSector {
- BoxDecoration _decoration;
RenderDecoratedSector(BoxDecoration decoration) : _decoration = decoration;
@@ -512,9 +511,9 @@ class RenderSolidColor extends RenderDecoratedSector {
void handlePointer(sky.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);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698