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

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

Issue 1217293003: Remove Material's opinion about background colours, since in fact the background colour varies dram… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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
« no previous file with comments | « sky/sdk/example/widgets/sector.dart ('k') | sky/sdk/example/widgets/tabs.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/example/widgets/styled_text.dart
diff --git a/sky/sdk/example/widgets/styled_text.dart b/sky/sdk/example/widgets/styled_text.dart
index 4e1581dc83fa51549506d40e4125809826f40e95..eddd81ed87a0ae21f08c1f4664a003c57fe636f7 100644
--- a/sky/sdk/example/widgets/styled_text.dart
+++ b/sky/sdk/example/widgets/styled_text.dart
@@ -6,7 +6,7 @@ import 'package:sky/painting/text_style.dart';
import 'package:sky/rendering/box.dart';
import 'package:sky/rendering/flex.dart';
import 'package:sky/rendering/sky_binding.dart';
-import 'package:sky/theme/colors.dart';
+import 'package:sky/theme/colors.dart' as colors;
import 'package:sky/widgets/basic.dart';
import 'package:sky/widgets/material.dart';
import 'package:sky/widgets/scaffold.dart';
@@ -41,8 +41,8 @@ HAL: This mission is too important for me to allow you to jeopardize it.''';
// [["Dave", "Open the pod bay..."] ...]
List<List<String>> nameLines;
- final TextStyle daveStyle = new TextStyle(color: Indigo[400], height: 1.8);
- final TextStyle halStyle = new TextStyle(color: Red[400], fontFamily: "monospace");
+ final TextStyle daveStyle = new TextStyle(color: colors.Indigo[400], height: 1.8);
+ final TextStyle halStyle = new TextStyle(color: colors.Red[400], fontFamily: "monospace");
final TextStyle boldStyle = const TextStyle(fontWeight: bold);
final TextStyle underlineStyle = const TextStyle(
decoration: underline,
@@ -106,9 +106,12 @@ HAL: This mission is too important for me to allow you to jeopardize it.''';
);
return new Theme(
- data: new ThemeData.light(primary: Blue, darkToolbar: true),
+ data: new ThemeData.light(primary: colors.Blue, darkToolbar: true),
child: new Scaffold(
- body: new Material(child: interactiveBody),
+ body: new Material(
+ color: colors.Grey[50],
+ child: interactiveBody
+ ),
toolbar: new ToolBar(
center: new Text('Hal and Dave')
)
« no previous file with comments | « sky/sdk/example/widgets/sector.dart ('k') | sky/sdk/example/widgets/tabs.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698