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

Side by Side Diff: sky/sdk/lib/framework/components2/menu_item.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
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 'button_base.dart'; 6 import 'button_base.dart';
7 import 'icon.dart'; 7 import 'icon.dart';
8 import 'ink_well.dart'; 8 import 'ink_well.dart';
9 9
10 const BoxDecoration _kHighlightDecoration = const BoxDecoration( 10 const BoxDecoration _kHighlightDecoration = const BoxDecoration(
(...skipping 28 matching lines...) Expand all
39 return new EventListenerNode( 39 return new EventListenerNode(
40 new Container( 40 new Container(
41 child: new InkWell( 41 child: new InkWell(
42 children: [ 42 children: [
43 new Padding( 43 new Padding(
44 child: new Icon(type: "${icon}_grey600", size: 24), 44 child: new Icon(type: "${icon}_grey600", size: 24),
45 padding: const EdgeDims.symmetric(horizontal: 16.0) 45 padding: const EdgeDims.symmetric(horizontal: 16.0)
46 ), 46 ),
47 new FlexExpandingChild( 47 new FlexExpandingChild(
48 new Padding( 48 new Padding(
49 child: new FlexContainer( 49 child: new Flex(children, direction: FlexDirection.horizontal),
50 direction: FlexDirection.horizontal,
51 children: children
52 ),
53 padding: const EdgeDims.symmetric(horizontal: 16.0) 50 padding: const EdgeDims.symmetric(horizontal: 16.0)
54 ), 51 ),
55 flex: 1 52 flex: 1
56 ) 53 )
57 ] 54 ]
58 ), 55 ),
59 height: 48.0, 56 height: 48.0,
60 decoration: highlight ? _kHighlightDecoration : _kHighlightBoring 57 decoration: highlight ? _kHighlightDecoration : _kHighlightBoring
61 ), 58 ),
62 onGestureTap: onGestureTap 59 onGestureTap: onGestureTap
63 ); 60 );
64 } 61 }
65 } 62 }
OLDNEW
« no previous file with comments | « sky/sdk/lib/framework/components2/input.dart ('k') | sky/sdk/lib/framework/components2/modal_overlay.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698