| 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 '../fn.dart'; | 5 import '../fn.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 class MenuItem extends ButtonBase { | 10 class MenuItem extends ButtonBase { |
| 11 static final Style _style = new Style(''' | 11 static final Style _style = new Style(''' |
| 12 transform: translateX(0); | |
| 13 display: flex; | |
| 14 flex-direction: row; | |
| 15 align-items: center; | 12 align-items: center; |
| 16 height: 48px; | 13 height: 48px; |
| 17 -webkit-user-select: none;''' | 14 -webkit-user-select: none;''' |
| 18 ); | 15 ); |
| 19 | 16 |
| 20 static final Style _highlightStyle = new Style(''' | 17 static final Style _highlightStyle = new Style(''' |
| 21 transform: translateX(0); | |
| 22 display: flex; | |
| 23 flex-direction: row; | |
| 24 align-items: center; | 18 align-items: center; |
| 25 height: 48px; | 19 height: 48px; |
| 26 background: rgba(153, 153, 153, 0.4); | 20 background: rgba(153, 153, 153, 0.4); |
| 27 -webkit-user-select: none;''' | 21 -webkit-user-select: none;''' |
| 28 ); | 22 ); |
| 29 | 23 |
| 30 static final Style _iconStyle = new Style(''' | 24 static final Style _iconStyle = new Style(''' |
| 31 padding: 0px 16px;''' | 25 padding: 0px 16px;''' |
| 32 ); | 26 ); |
| 33 | 27 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 55 new Container( | 49 new Container( |
| 56 style: _labelStyle, | 50 style: _labelStyle, |
| 57 children: children | 51 children: children |
| 58 ) | 52 ) |
| 59 ] | 53 ] |
| 60 ), | 54 ), |
| 61 highlight ? _highlightStyle : _style | 55 highlight ? _highlightStyle : _style |
| 62 ); | 56 ); |
| 63 } | 57 } |
| 64 } | 58 } |
| OLD | NEW |