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_action_bar; |
| 6 |
5 import '../fn.dart'; | 7 import '../fn.dart'; |
6 import '../layout.dart'; | 8 import '../layout.dart'; |
7 import '../theme/view_configuration.dart'; | 9 import '../theme/view_configuration.dart'; |
8 import 'material.dart'; | 10 import 'material.dart'; |
9 | 11 |
10 class ActionBar extends Component { | 12 class ActionBar extends Component { |
11 static final Style _style = new Style(''' | 13 static final Style _style = new Style(''' |
12 align-items: center; | 14 align-items: center; |
13 height: 56px; | 15 height: 56px; |
14 padding: 0 8px; | 16 padding: 0 8px; |
(...skipping 23 matching lines...) Expand all Loading... |
38 children.addAll(right); | 40 children.addAll(right); |
39 | 41 |
40 return new Material( | 42 return new Material( |
41 content: new FlexContainer( | 43 content: new FlexContainer( |
42 style: _style, | 44 style: _style, |
43 children: children, | 45 children: children, |
44 direction: FlexDirection.Row), | 46 direction: FlexDirection.Row), |
45 level: 2); | 47 level: 2); |
46 } | 48 } |
47 } | 49 } |
OLD | NEW |