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

Side by Side Diff: sky/sdk/lib/widgets/drawer_header.dart

Issue 1179763009: Give ParentDataNodes snappier names (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: nit 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 unified diff | Download patch
« no previous file with comments | « sky/sdk/lib/widgets/basic.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 '../theme2/colors.dart'; 5 import '../theme2/colors.dart';
6 import '../theme2/view_configuration.dart'; 6 import '../theme2/view_configuration.dart';
7 import 'basic.dart'; 7 import 'basic.dart';
8 8
9 class DrawerHeader extends Component { 9 class DrawerHeader extends Component {
10 10
11 DrawerHeader({ Object key, this.children }) : super(key: key); 11 DrawerHeader({ Object key, this.children }) : super(key: key);
12 12
13 final List<UINode> children; 13 final List<UINode> children;
14 14
15 UINode build() { 15 UINode build() {
16 return new Container( 16 return new Container(
17 height: kStatusBarHeight + kMaterialDrawerHeight, 17 height: kStatusBarHeight + kMaterialDrawerHeight,
18 decoration: new BoxDecoration( 18 decoration: new BoxDecoration(
19 backgroundColor: BlueGrey[50], 19 backgroundColor: BlueGrey[50],
20 border: const Border( 20 border: const Border(
21 bottom: const BorderSide( 21 bottom: const BorderSide(
22 color: const Color(0xFFD1D9E1), 22 color: const Color(0xFFD1D9E1),
23 width: 1.0 23 width: 1.0
24 ) 24 )
25 ) 25 )
26 ), 26 ),
27 padding: const EdgeDims.only(bottom: 7.0), 27 padding: const EdgeDims.only(bottom: 7.0),
28 margin: const EdgeDims.only(bottom: 8.0), 28 margin: const EdgeDims.only(bottom: 8.0),
29 child: new Flex([ 29 child: new Flex([
30 new FlexExpandingChild(new Container(key: 'drawer-header-spacer')), 30 new Flexible(child: new Container(key: 'drawer-header-spacer')),
31 new Container( 31 new Container(
32 key: 'drawer-header-label', 32 key: 'drawer-header-label',
33 padding: const EdgeDims.symmetric(horizontal: 16.0), 33 padding: const EdgeDims.symmetric(horizontal: 16.0),
34 child: new Flex(children, direction: FlexDirection.horizontal) 34 child: new Flex(children, direction: FlexDirection.horizontal)
35 )], 35 )],
36 direction: FlexDirection.vertical 36 direction: FlexDirection.vertical
37 ) 37 )
38 ); 38 );
39 } 39 }
40 40
41 } 41 }
OLDNEW
« no previous file with comments | « sky/sdk/lib/widgets/basic.dart ('k') | sky/sdk/lib/widgets/menu_item.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698