Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(249)

Side by Side Diff: sky/sdk/lib/widgets/tool_bar.dart

Issue 1190793002: Rename UINode to Widget. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/sdk/lib/widgets/toggleable.dart ('k') | sky/sdk/lib/widgets/ui_node.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 '../rendering/flex.dart'; 5 import '../rendering/flex.dart';
6 import '../theme2/shadows.dart'; 6 import '../theme2/shadows.dart';
7 import '../theme2/view_configuration.dart'; 7 import '../theme2/view_configuration.dart';
8 import 'basic.dart'; 8 import 'basic.dart';
9 9
10 class ToolBar extends Component { 10 class ToolBar extends Component {
11 11
12 ToolBar({ 12 ToolBar({
13 String key, 13 String key,
14 this.left, 14 this.left,
15 this.center, 15 this.center,
16 this.right, 16 this.right,
17 this.backgroundColor 17 this.backgroundColor
18 }) : super(key: key); 18 }) : super(key: key);
19 19
20 final UINode left; 20 final Widget left;
21 final UINode center; 21 final Widget center;
22 final List<UINode> right; 22 final List<Widget> right;
23 final Color backgroundColor; 23 final Color backgroundColor;
24 24
25 UINode build() { 25 Widget build() {
26 List<UINode> children = new List<UINode>(); 26 List<Widget> children = new List<Widget>();
27 if (left != null) 27 if (left != null)
28 children.add(left); 28 children.add(left);
29 29
30 if (center != null) { 30 if (center != null) {
31 children.add( 31 children.add(
32 new Flexible( 32 new Flexible(
33 child: new Padding( 33 child: new Padding(
34 child: center, 34 child: center,
35 padding: new EdgeDims.only(left: 24.0) 35 padding: new EdgeDims.only(left: 24.0)
36 ) 36 )
(...skipping 11 matching lines...) Expand all
48 ), 48 ),
49 padding: new EdgeDims.symmetric(horizontal: 8.0), 49 padding: new EdgeDims.symmetric(horizontal: 8.0),
50 decoration: new BoxDecoration( 50 decoration: new BoxDecoration(
51 backgroundColor: backgroundColor, 51 backgroundColor: backgroundColor,
52 boxShadow: shadows[2] 52 boxShadow: shadows[2]
53 ) 53 )
54 ); 54 );
55 } 55 }
56 56
57 } 57 }
OLDNEW
« no previous file with comments | « sky/sdk/lib/widgets/toggleable.dart ('k') | sky/sdk/lib/widgets/ui_node.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698