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

Unified Diff: sky/sdk/lib/widgets/drawer_header.dart

Issue 1217573003: Fix all the components to pick the right colours from the theme. (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/lib/theme/typography.dart ('k') | sky/sdk/lib/widgets/menu_item.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/widgets/drawer_header.dart
diff --git a/sky/sdk/lib/widgets/drawer_header.dart b/sky/sdk/lib/widgets/drawer_header.dart
index 571ca302639199443fe8ee55cea61f95588afad0..730055b3db1256ad793d04c7c0a8aae34ea70b2f 100644
--- a/sky/sdk/lib/widgets/drawer_header.dart
+++ b/sky/sdk/lib/widgets/drawer_header.dart
@@ -5,6 +5,8 @@
import '../theme/colors.dart';
import '../theme/view_configuration.dart';
import 'basic.dart';
+import 'default_text_style.dart';
+import 'theme.dart';
class DrawerHeader extends Component {
@@ -30,7 +32,10 @@ class DrawerHeader extends Component {
new Flexible(child: new Container()),
new Container(
padding: const EdgeDims.symmetric(horizontal: 16.0),
- child: new Flex(children, direction: FlexDirection.horizontal)
+ child: new DefaultTextStyle(
+ style: Theme.of(this).text.body2,
+ child: new Flex(children, direction: FlexDirection.horizontal)
+ )
)],
direction: FlexDirection.vertical
)
« no previous file with comments | « sky/sdk/lib/theme/typography.dart ('k') | sky/sdk/lib/widgets/menu_item.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698