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

Unified Diff: sky/examples/mine_digger/mine_digger.dart

Issue 1209823002: fix minedigger win bug (Closed) Base URL: https://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
« 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/mine_digger/mine_digger.dart
diff --git a/sky/examples/mine_digger/mine_digger.dart b/sky/examples/mine_digger/mine_digger.dart
index b5b798c495f312145c2dbc631be03684d3cdba34..aa205638cdbf2a393ea46e7ae3ec68ea4b5702c9 100644
--- a/sky/examples/mine_digger/mine_digger.dart
+++ b/sky/examples/mine_digger/mine_digger.dart
@@ -171,10 +171,13 @@ class Game {
}
Widget buildUI() {
+ // FIXME: We need to build the board before we build the toolbar because
+ // we compute the win state during build step.
+ Widget board = buildBoard();
return new Scaffold(
toolbar: buildToolBar(),
body: new Container(
- child: new Center(child: buildBoard()),
+ child: new Center(child: board),
decoration: new BoxDecoration(backgroundColor: colors.Grey[50])
)
);
« 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