mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
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:
parent
41c3e58e27
commit
81f74478d6
@ -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])
|
||||
)
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user