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

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

Issue 971183002: Initial commit of Effen reactive framework experiment for Sky (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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
(Empty)
1 part of widgets;
2
3 abstract class ButtonBase extends Component {
4
5 bool _highlight = false;
6
7 ButtonBase({ Object key }) : super(key: key);
8
9 void _handlePointerDown(_) {
10 setState(() {
11 _highlight = true;
12 });
13 }
14 void _handlePointerUp(_) {
15 setState(() {
16 _highlight = false;
17 });
18 }
19 void _handlePointerCancel(_) {
20 setState(() {
21 _highlight = false;
22 });
23 }
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