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

Unified Diff: sky/examples/widgets/styled_text.dart

Issue 1204523002: Material light and dark themes for Sky widgets (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix analyzer warning properly Created 5 years, 6 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
Index: sky/examples/widgets/styled_text.dart
diff --git a/sky/examples/widgets/styled_text.dart b/sky/examples/widgets/styled_text.dart
index 6ca309fe4a19896b49c5668a4d5669cb29c1354b..42d34ff6421a5740a8c929accbace2070ba1094b 100644
--- a/sky/examples/widgets/styled_text.dart
+++ b/sky/examples/widgets/styled_text.dart
@@ -108,11 +108,11 @@ HAL: This mission is too important for me to allow you to jeopardize it.''';
);
return new Theme(
- data: new ThemeData(color: Blue, text: white),
+ data: new ThemeData.light(primary: Blue, darkToolbar: true),
child: new Scaffold(
body: new Material(child: interactiveBody),
toolbar: new ToolBar(
- center: new Text('Hal and Dave', style: white.title)
+ center: new Text('Hal and Dave')
)
)
);

Powered by Google App Engine
This is Rietveld 408576698