fix minedigger win bug

Win was not being detected.

BUG=none
R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1209823002.
This commit is contained in:
Carlos Pizano
2015-06-24 18:14:51 -07:00
parent 3df2427540
commit 45ccc2e812

View File

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