| 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 'package:sky/widgets/theme.dart'; |
| 6 |
| 5 import '../rendering/flex.dart'; | 7 import '../rendering/flex.dart'; |
| 6 import '../theme/shadows.dart'; | 8 import '../theme/shadows.dart'; |
| 7 import '../theme/view_configuration.dart'; | 9 import '../theme/view_configuration.dart'; |
| 8 import 'basic.dart'; | 10 import 'basic.dart'; |
| 9 | 11 |
| 10 class ToolBar extends Component { | 12 class ToolBar extends Component { |
| 11 | 13 |
| 12 ToolBar({ | 14 ToolBar({ |
| 13 String key, | 15 String key, |
| 14 this.left, | 16 this.left, |
| (...skipping 26 matching lines...) Expand all Loading... |
| 41 if (right != null) | 43 if (right != null) |
| 42 children.addAll(right); | 44 children.addAll(right); |
| 43 | 45 |
| 44 return new Container( | 46 return new Container( |
| 45 child: new Flex( | 47 child: new Flex( |
| 46 [new Container(child: new Flex(children), height: kToolBarHeight)], | 48 [new Container(child: new Flex(children), height: kToolBarHeight)], |
| 47 alignItems: FlexAlignItems.flexEnd | 49 alignItems: FlexAlignItems.flexEnd |
| 48 ), | 50 ), |
| 49 padding: new EdgeDims.symmetric(horizontal: 8.0), | 51 padding: new EdgeDims.symmetric(horizontal: 8.0), |
| 50 decoration: new BoxDecoration( | 52 decoration: new BoxDecoration( |
| 51 backgroundColor: backgroundColor, | 53 backgroundColor: backgroundColor == null ? Theme.of(this).color[500] : b
ackgroundColor, |
| 52 boxShadow: shadows[2] | 54 boxShadow: shadows[2] |
| 53 ) | 55 ) |
| 54 ); | 56 ); |
| 55 } | 57 } |
| 56 | 58 |
| 57 } | 59 } |
| OLD | NEW |