Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(904)

Unified Diff: sky/sdk/example/mine_digger/lib/main.dart

Issue 1218293017: Deploy TaskDescription to the rest of our demos (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/sdk/example/demo_launcher/lib/main.dart ('k') | sky/sdk/example/rendering/interactive_flex.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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])
+ )
)
);
}
« no previous file with comments | « sky/sdk/example/demo_launcher/lib/main.dart ('k') | sky/sdk/example/rendering/interactive_flex.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698