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_button_base; |
| 6 |
5 import '../fn.dart'; | 7 import '../fn.dart'; |
6 | 8 |
7 abstract class ButtonBase extends Component { | 9 abstract class ButtonBase extends Component { |
8 bool highlight = false; | 10 bool highlight = false; |
9 | 11 |
10 ButtonBase({ Object key }) : super(key: key); | 12 ButtonBase({ Object key }) : super(key: key); |
11 | 13 |
12 UINode buildContent(); | 14 UINode buildContent(); |
13 | 15 |
14 UINode build() { | 16 UINode build() { |
(...skipping 14 matching lines...) Expand all Loading... |
29 setState(() { | 31 setState(() { |
30 highlight = false; | 32 highlight = false; |
31 }); | 33 }); |
32 } | 34 } |
33 void _handlePointerCancel(_) { | 35 void _handlePointerCancel(_) { |
34 setState(() { | 36 setState(() { |
35 highlight = false; | 37 highlight = false; |
36 }); | 38 }); |
37 } | 39 } |
38 } | 40 } |
OLD | NEW |