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

Unified Diff: sky/sdk/example/widgets/card_collection.dart

Issue 1232103006: Add Cards and Fitness demos, remove sector. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Add TaskDescriptions to the new demos 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/widgets/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/example/widgets/card_collection.dart
diff --git a/sky/sdk/example/widgets/card_collection.dart b/sky/sdk/example/widgets/card_collection.dart
index 6f9f22297f1f054c80e6662e4218f801472bc27b..a53369d68aa9aab9783fffe9b29dd0dc54e65a43 100644
--- a/sky/sdk/example/widgets/card_collection.dart
+++ b/sky/sdk/example/widgets/card_collection.dart
@@ -13,6 +13,8 @@ import 'package:sky/widgets/variable_height_scrollable.dart';
import 'package:sky/widgets/theme.dart';
import 'package:sky/widgets/tool_bar.dart';
import 'package:sky/widgets/widget.dart';
+import 'package:sky/theme/colors.dart' as colors;
+import 'package:sky/widgets/task_description.dart';
class CardCollectionApp extends App {
@@ -71,9 +73,19 @@ class CardCollectionApp extends App {
)
);
- return new Scaffold(
- toolbar: new ToolBar(center: new Text('Swipe Away')),
- body: cardCollection
+ return new Theme(
+ data: new ThemeData(
+ brightness: ThemeBrightness.light,
+ primarySwatch: colors.Blue,
+ accentColor: colors.RedAccent[200]
+ ),
+ child: new TaskDescription(
+ label: 'Cards',
+ child: new Scaffold(
+ toolbar: new ToolBar(center: new Text('Swipe Away')),
+ body: cardCollection
+ )
+ )
);
}
}
« no previous file with comments | « sky/sdk/example/widgets/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698