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 library components_menu_item; | |
6 | |
7 import '../fn.dart'; | 5 import '../fn.dart'; |
8 import '../layout.dart'; | 6 import '../layout.dart'; |
9 import 'button_base.dart'; | 7 import 'button_base.dart'; |
10 import 'icon.dart'; | 8 import 'icon.dart'; |
11 import 'ink_well.dart'; | 9 import 'ink_well.dart'; |
12 | 10 |
13 class MenuItem extends ButtonBase { | 11 class MenuItem extends ButtonBase { |
14 static final Style _style = new Style(''' | 12 static final Style _style = new Style(''' |
15 align-items: center; | 13 align-items: center; |
16 height: 48px; | 14 height: 48px; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 _labelFlex | 59 _labelFlex |
62 ) | 60 ) |
63 ] | 61 ] |
64 ), | 62 ), |
65 highlight ? _highlightStyle : _style | 63 highlight ? _highlightStyle : _style |
66 ), | 64 ), |
67 onGestureTap: onGestureTap | 65 onGestureTap: onGestureTap |
68 ); | 66 ); |
69 } | 67 } |
70 } | 68 } |
OLD | NEW |