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

Unified Diff: sky/examples/game/lib/sprite_box.dart

Issue 1151793003: Adds (somewhat crappy) controls to example game (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 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
Index: sky/examples/game/lib/sprite_box.dart
diff --git a/sky/examples/game/lib/sprite_box.dart b/sky/examples/game/lib/sprite_box.dart
index 01c34f9f29f3b5aa867bb31972370b7369886b9e..40ca275110064029317a44937f95b50e775dc389 100644
--- a/sky/examples/game/lib/sprite_box.dart
+++ b/sky/examples/game/lib/sprite_box.dart
@@ -37,6 +37,8 @@ class SpriteBox extends RenderBox {
double get systemWidth => _systemWidth;
double get systemHeight => _systemHeight;
+ TransformNode get rootNode => _rootNode;
+
void performLayout() {
size = constraints.constrain(Size.infinite);
}

Powered by Google App Engine
This is Rietveld 408576698