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]) |
) |
); |