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

Unified Diff: sky/sdk/lib/framework/components2/button_base.dart

Issue 1172173002: Clean up a bunch of our Dart code. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: upstream merge Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/sdk/lib/framework/components2/button.dart ('k') | sky/sdk/lib/framework/components2/checkbox.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/framework/components2/button_base.dart
diff --git a/sky/sdk/lib/framework/components2/button_base.dart b/sky/sdk/lib/framework/components2/button_base.dart
index ca00617d4d85d80b0e2c6439e8c408ab50c6bebd..8e507f5adc82b03f829cb818abe6d4cedaf83ec1 100644
--- a/sky/sdk/lib/framework/components2/button_base.dart
+++ b/sky/sdk/lib/framework/components2/button_base.dart
@@ -5,7 +5,6 @@
import '../fn2.dart';
abstract class ButtonBase extends Component {
- bool highlight = false;
ButtonBase({ Object key }) : super(key: key);
@@ -20,6 +19,8 @@ abstract class ButtonBase extends Component {
);
}
+ bool highlight = false;
+
void _handlePointerDown(_) {
setState(() {
highlight = true;
« no previous file with comments | « sky/sdk/lib/framework/components2/button.dart ('k') | sky/sdk/lib/framework/components2/checkbox.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698