| 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 library components_drawer_header; | |
| 6 | |
| 7 import '../fn.dart'; | 5 import '../fn.dart'; |
| 8 import '../layout.dart'; | 6 import '../layout.dart'; |
| 9 import '../theme/colors.dart'; | 7 import '../theme/colors.dart'; |
| 10 import '../theme/view_configuration.dart'; | 8 import '../theme/view_configuration.dart'; |
| 11 | 9 |
| 12 class DrawerHeader extends Component { | 10 class DrawerHeader extends Component { |
| 13 static final Style _style = new Style(''' | 11 static final Style _style = new Style(''' |
| 14 height: ${140 + kStatusBarHeight}px; | 12 height: ${140 + kStatusBarHeight}px; |
| 15 background-color: ${BlueGrey[50]}; | 13 background-color: ${BlueGrey[50]}; |
| 16 border-bottom: 1px solid #D1D9E1; | 14 border-bottom: 1px solid #D1D9E1; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 39 ), | 37 ), |
| 40 new Container( | 38 new Container( |
| 41 key: 'Label', | 39 key: 'Label', |
| 42 style: _labelStyle, | 40 style: _labelStyle, |
| 43 children: children | 41 children: children |
| 44 ) | 42 ) |
| 45 ] | 43 ] |
| 46 ); | 44 ); |
| 47 } | 45 } |
| 48 } | 46 } |
| OLD | NEW |