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

Side by Side 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, 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 import '../theme/colors.dart'; 5 import '../theme/colors.dart';
6 import '../theme/view_configuration.dart'; 6 import '../theme/view_configuration.dart';
7 import 'basic.dart'; 7 import 'basic.dart';
8 import 'default_text_style.dart';
9 import 'theme.dart';
8 10
9 class DrawerHeader extends Component { 11 class DrawerHeader extends Component {
10 12
11 DrawerHeader({ String key, this.children }) : super(key: key); 13 DrawerHeader({ String key, this.children }) : super(key: key);
12 14
13 final List<Widget> children; 15 final List<Widget> children;
14 16
15 Widget build() { 17 Widget build() {
16 return new Container( 18 return new Container(
17 height: kStatusBarHeight + kMaterialDrawerHeight, 19 height: kStatusBarHeight + kMaterialDrawerHeight,
18 decoration: new BoxDecoration( 20 decoration: new BoxDecoration(
19 backgroundColor: BlueGrey[50], 21 backgroundColor: BlueGrey[50],
20 border: const Border( 22 border: const Border(
21 bottom: const BorderSide( 23 bottom: const BorderSide(
22 color: const Color(0xFFD1D9E1), 24 color: const Color(0xFFD1D9E1),
23 width: 1.0 25 width: 1.0
24 ) 26 )
25 ) 27 )
26 ), 28 ),
27 padding: const EdgeDims.only(bottom: 7.0), 29 padding: const EdgeDims.only(bottom: 7.0),
28 margin: const EdgeDims.only(bottom: 8.0), 30 margin: const EdgeDims.only(bottom: 8.0),
29 child: new Flex([ 31 child: new Flex([
30 new Flexible(child: new Container()), 32 new Flexible(child: new Container()),
31 new Container( 33 new Container(
32 padding: const EdgeDims.symmetric(horizontal: 16.0), 34 padding: const EdgeDims.symmetric(horizontal: 16.0),
33 child: new Flex(children, direction: FlexDirection.horizontal) 35 child: new DefaultTextStyle(
36 style: Theme.of(this).text.body2,
37 child: new Flex(children, direction: FlexDirection.horizontal)
38 )
34 )], 39 )],
35 direction: FlexDirection.vertical 40 direction: FlexDirection.vertical
36 ) 41 )
37 ); 42 );
38 } 43 }
39 44
40 } 45 }
OLDNEW
« 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