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