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