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 '../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 Loading... |
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 } |
OLD | NEW |