| Index: sky/sdk/example/mine_digger/lib/main.dart
|
| diff --git a/sky/sdk/example/mine_digger/lib/main.dart b/sky/sdk/example/mine_digger/lib/main.dart
|
| index bc5fea6d6b721137ac2190a4c515f6d9f72c8035..0db72e289529ee00b04de0e3e220c21a3584737b 100644
|
| --- a/sky/sdk/example/mine_digger/lib/main.dart
|
| +++ b/sky/sdk/example/mine_digger/lib/main.dart
|
| @@ -5,13 +5,14 @@
|
| import 'dart:sky' as sky;
|
| import 'dart:math';
|
|
|
| +import 'package:sky/painting/text_style.dart';
|
| import 'package:sky/rendering/flex.dart';
|
| +import 'package:sky/theme/colors.dart' as colors;
|
| import 'package:sky/widgets/basic.dart';
|
| import 'package:sky/widgets/scaffold.dart';
|
| -import 'package:sky/widgets/tool_bar.dart';
|
| +import 'package:sky/widgets/task_description.dart';
|
| import 'package:sky/widgets/theme.dart';
|
| -import 'package:sky/theme/colors.dart' as colors;
|
| -import 'package:sky/painting/text_style.dart';
|
| +import 'package:sky/widgets/tool_bar.dart';
|
|
|
| // Classic minesweeper-inspired game. The mouse controls are standard except
|
| // for left + right combo which is not implemented. For touch, the duration of
|
| @@ -174,11 +175,14 @@ class Game {
|
| // 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: board),
|
| - decoration: new BoxDecoration(backgroundColor: colors.Grey[50])
|
| + return new TaskDescription(
|
| + label: 'Mine Digger',
|
| + child: new Scaffold(
|
| + toolbar: buildToolBar(),
|
| + body: new Container(
|
| + child: new Center(child: board),
|
| + decoration: new BoxDecoration(backgroundColor: colors.Grey[50])
|
| + )
|
| )
|
| );
|
| }
|
|
|