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 41c3e58e27
commit 81f74478d6

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