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 'dart:sky' as sky; | 5 import 'dart:sky' as sky; |
6 import '../fn2.dart'; | 6 import '../fn2.dart'; |
7 import '../rendering/box.dart'; | 7 import '../rendering/box.dart'; |
8 import '../rendering/flex.dart'; | 8 import '../rendering/flex.dart'; |
9 import 'button_base.dart'; | 9 import 'button_base.dart'; |
10 import 'icon.dart'; | 10 import 'icon.dart'; |
(...skipping 16 matching lines...) Expand all Loading... |
27 new Container( | 27 new Container( |
28 child: new InkWell( | 28 child: new InkWell( |
29 children: [ | 29 children: [ |
30 new Padding( | 30 new Padding( |
31 child: new Icon(type: "${icon}_grey600", size: 24), | 31 child: new Icon(type: "${icon}_grey600", size: 24), |
32 padding: const EdgeDims.symmetric(horizontal: 16.0) | 32 padding: const EdgeDims.symmetric(horizontal: 16.0) |
33 ), | 33 ), |
34 new FlexExpandingChild( | 34 new FlexExpandingChild( |
35 new Padding( | 35 new Padding( |
36 child: new FlexContainer( | 36 child: new FlexContainer( |
37 direction: FlexDirection.Horizontal, | 37 direction: FlexDirection.horizontal, |
38 children: children | 38 children: children |
39 ), | 39 ), |
40 padding: const EdgeDims.symmetric(horizontal: 16.0) | 40 padding: const EdgeDims.symmetric(horizontal: 16.0) |
41 ), | 41 ), |
42 1 | 42 1 |
43 ) | 43 ) |
44 ] | 44 ] |
45 ), | 45 ), |
46 desiredSize: const sky.Size.fromHeight(48.0), | 46 desiredSize: const sky.Size.fromHeight(48.0), |
47 decoration: highlight ? highlightDecoration : null | 47 decoration: highlight ? highlightDecoration : null |
48 ), | 48 ), |
49 onGestureTap: onGestureTap | 49 onGestureTap: onGestureTap |
50 ); | 50 ); |
51 } | 51 } |
52 } | 52 } |
OLD | NEW |