OLD | NEW |
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 '../fn.dart'; | 5 import '../fn.dart'; |
6 import '../theme/colors.dart'; | 6 import '../theme/colors.dart'; |
| 7 import '../theme/view-configuration.dart'; |
7 | 8 |
8 class DrawerHeader extends Component { | 9 class DrawerHeader extends Component { |
9 static final Style _style = new Style(''' | 10 static final Style _style = new Style(''' |
10 display: flex; | 11 display: flex; |
11 flex-direction: column; | 12 flex-direction: column; |
12 height: 140px; | 13 height: ${140 + kStatusBarHeight}px; |
13 -webkit-user-select: none; | 14 -webkit-user-select: none; |
14 background-color: ${BlueGrey[50]}; | 15 background-color: ${BlueGrey[50]}; |
15 border-bottom: 1px solid #D1D9E1; | 16 border-bottom: 1px solid #D1D9E1; |
16 padding-bottom: 7px; | 17 padding-bottom: 7px; |
17 margin-bottom: 8px;''' | 18 margin-bottom: 8px;''' |
18 ); | 19 ); |
19 | 20 |
20 static final Style _spacerStyle = new Style(''' | 21 static final Style _spacerStyle = new Style(''' |
21 flex: 1''' | 22 flex: 1''' |
22 ); | 23 ); |
(...skipping 18 matching lines...) Expand all Loading... |
41 ), | 42 ), |
42 new Container( | 43 new Container( |
43 key: 'Label', | 44 key: 'Label', |
44 style: _labelStyle, | 45 style: _labelStyle, |
45 children: children | 46 children: children |
46 ) | 47 ) |
47 ] | 48 ] |
48 ); | 49 ); |
49 } | 50 } |
50 } | 51 } |
OLD | NEW |