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

Unified Diff: sky/sdk/example/mine_digger/lib/main.dart

Issue 1217093005: Refactor stateful parts of Component into StatefulComponent (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: rebase Created 5 years, 5 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 | sky/sdk/example/stocks/lib/stock_home.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/example/mine_digger/lib/main.dart
diff --git a/sky/sdk/example/mine_digger/lib/main.dart b/sky/sdk/example/mine_digger/lib/main.dart
index c52cf6691ea32f5a020d8eb09b38776ce80c18e4..bc5fea6d6b721137ac2190a4c515f6d9f72c8035 100644
--- a/sky/sdk/example/mine_digger/lib/main.dart
+++ b/sky/sdk/example/mine_digger/lib/main.dart
@@ -185,7 +185,7 @@ class Game {
void handleBannerPointerDown(sky.PointerEvent event) {
initialize();
- app.setState((){});
+ app.scheduleBuild();
}
// User action. The user uncovers the cell which can cause losing the game.
@@ -203,7 +203,7 @@ class Game {
// No mine, uncover nearby if possible.
cull(x, y);
}
- app.setState((){});
+ app.scheduleBuild();
}
// User action. The user is sure a mine is at this location.
@@ -215,7 +215,7 @@ class Game {
uiState[y][x] = flaggedCell;
++detectedCount;
}
- app.setState((){});
+ app.scheduleBuild();
}
// Recursively uncovers cells whose totalMineCount is zero.
« no previous file with comments | « no previous file | sky/sdk/example/stocks/lib/stock_home.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698