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

Unified Diff: sky/sdk/example/widgets/tabs.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/styled_text.dart ('k') | sky/sdk/lib/widgets/flat_button.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/example/widgets/tabs.dart
diff --git a/sky/sdk/example/widgets/tabs.dart b/sky/sdk/example/widgets/tabs.dart
index 4eeb28d5342ff27b2eb341e325635f16d29a061d..cc35e75488c6e76f7c2a09cd3fb633e9a676eaa0 100644
--- a/sky/sdk/example/widgets/tabs.dart
+++ b/sky/sdk/example/widgets/tabs.dart
@@ -3,7 +3,8 @@
// found in the LICENSE file.
import 'package:sky/painting/text_style.dart';
-import 'package:sky/theme/typography.dart';
+import 'package:sky/theme/colors.dart' as colors;
+import 'package:sky/theme/typography.dart' as typography;
import 'package:sky/widgets/basic.dart';
import 'package:sky/widgets/material.dart';
import 'package:sky/widgets/scaffold.dart';
@@ -45,12 +46,15 @@ class TabbedNavigatorApp extends App {
);
ToolBar toolbar = new ToolBar(
- center: new Text('Tabbed Navigator', style: white.title)
+ center: new Text('Tabbed Navigator', style: typography.white.title)
);
return new Scaffold(
toolbar: toolbar,
- body: new Material(child: tabNavigator)
+ body: new Material(
+ color: colors.Grey[50],
+ child: tabNavigator
+ )
);
}
}
« no previous file with comments | « sky/sdk/example/widgets/styled_text.dart ('k') | sky/sdk/lib/widgets/flat_button.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698