Commit 45ccc2e8 authored by Carlos Pizano's avatar Carlos Pizano

fix minedigger win bug

Win was not being detected.

BUG=none
R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1209823002.
parent 3df24275
...@@ -171,10 +171,13 @@ class Game { ...@@ -171,10 +171,13 @@ class Game {
} }
Widget buildUI() { 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( return new Scaffold(
toolbar: buildToolBar(), toolbar: buildToolBar(),
body: new Container( body: new Container(
child: new Center(child: buildBoard()), child: new Center(child: board),
decoration: new BoxDecoration(backgroundColor: colors.Grey[50]) decoration: new BoxDecoration(backgroundColor: colors.Grey[50])
) )
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment