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

Side by Side Diff: sky/sdk/lib/framework/components2/tool_bar.dart

Issue 1181533002: Rename BlockContainer, StackContainer, and FlexContainer (Closed) Base URL: git@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/framework/components2/popup_menu_item.dart ('k') | sky/sdk/lib/framework/fn2.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 '../fn2.dart'; 5 import '../fn2.dart';
6 import '../rendering/flex.dart'; 6 import '../rendering/flex.dart';
7 import '../theme2/view_configuration.dart'; 7 import '../theme2/view_configuration.dart';
8 import '../theme2/shadows.dart'; 8 import '../theme2/shadows.dart';
9 9
10 class ToolBar extends Component { 10 class ToolBar extends Component {
(...skipping 17 matching lines...) Expand all
28 new FlexExpandingChild( 28 new FlexExpandingChild(
29 new Padding( 29 new Padding(
30 child: center, 30 child: center,
31 padding: new EdgeDims.only(left: 24.0) 31 padding: new EdgeDims.only(left: 24.0)
32 )) 32 ))
33 ]; 33 ];
34 34
35 if (right != null) 35 if (right != null)
36 children.addAll(right); 36 children.addAll(right);
37 37
38 // TODO(hansmuller): use align-items:flex-end when FlexContainer supports it . 38 // TODO(hansmuller): use align-items:flex-end when Flex supports it.
39 UINode bottomJustifiedChild = new FlexContainer( 39 UINode bottomJustifiedChild = new Flex([
40 new Container(child: new Flex(children), height: kToolBarHeight)
41 ],
40 direction: FlexDirection.vertical, 42 direction: FlexDirection.vertical,
41 justifyContent: FlexJustifyContent.flexEnd, 43 justifyContent: FlexJustifyContent.flexEnd);
42 children: [new Container(
43 child: new FlexContainer(children: children),
44 height: kToolBarHeight)]);
45 44
46 return new Container( 45 return new Container(
47 child: bottomJustifiedChild, 46 child: bottomJustifiedChild,
48 padding: new EdgeDims.symmetric(horizontal: 8.0), 47 padding: new EdgeDims.symmetric(horizontal: 8.0),
49 decoration: new BoxDecoration( 48 decoration: new BoxDecoration(
50 backgroundColor: backgroundColor, 49 backgroundColor: backgroundColor,
51 boxShadow: Shadow[2] 50 boxShadow: Shadow[2]
52 ) 51 )
53 ); 52 );
54 } 53 }
55 54
56 } 55 }
OLDNEW
« no previous file with comments | « sky/sdk/lib/framework/components2/popup_menu_item.dart ('k') | sky/sdk/lib/framework/fn2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698