Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(345)

Side by Side Diff: sky/examples/fn/widgets/buttonbase.dart

Issue 974903005: attempt at making menuitems react (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rationalise my local client and upload the result Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/examples/fn/widgets/button.dart ('k') | sky/examples/fn/widgets/checkbox.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 part of widgets; 1 part of widgets;
2 2
3 abstract class ButtonBase extends Component { 3 abstract class ButtonBase extends MaterialComponent {
4 4
5 bool _highlight = false; 5 bool _highlight = false;
6 6
7 ButtonBase({ Object key }) : super(key: key); 7 ButtonBase({ Object key }) : super(key: key);
8 8
9 void _handlePointerDown(_) { 9 void _handlePointerDown(_) {
10 setState(() { 10 setState(() {
11 _highlight = true; 11 _highlight = true;
12 }); 12 });
13 } 13 }
14 void _handlePointerUp(_) { 14 void _handlePointerUp(_) {
15 setState(() { 15 setState(() {
16 _highlight = false; 16 _highlight = false;
17 }); 17 });
18 } 18 }
19 void _handlePointerCancel(_) { 19 void _handlePointerCancel(_) {
20 setState(() { 20 setState(() {
21 _highlight = false; 21 _highlight = false;
22 }); 22 });
23 } 23 }
24 } 24 }
OLDNEW
« no previous file with comments | « sky/examples/fn/widgets/button.dart ('k') | sky/examples/fn/widgets/checkbox.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698