提交 81f74478 编写于 作者: C Carlos Pizano

fix minedigger win bug

Win was not being detected.

BUG=none
R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1209823002.
上级 41c3e58e
......@@ -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])
)
);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册