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

Unified Diff: sky/examples/fn/widgets/buttonbase.dart

Issue 993033003: Move example fn widgets into sky/framework/components (Closed) Base URL: git@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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/fn/widgets/buttonbase.dart
diff --git a/sky/examples/fn/widgets/buttonbase.dart b/sky/examples/fn/widgets/buttonbase.dart
deleted file mode 100644
index a69202280188acaf268d3e7b3b446d76bc401dbd..0000000000000000000000000000000000000000
--- a/sky/examples/fn/widgets/buttonbase.dart
+++ /dev/null
@@ -1,28 +0,0 @@
-part of widgets;
-
-abstract class ButtonBase extends MaterialComponent {
-
- bool _highlight = false;
-
- ButtonBase({ Object key }) : super(key: key) {
- events.listen('pointerdown', _handlePointerDown);
- events.listen('pointerup', _handlePointerUp);
- events.listen('pointercancel', _handlePointerCancel);
- }
-
- void _handlePointerDown(_) {
- setState(() {
- _highlight = true;
- });
- }
- void _handlePointerUp(_) {
- setState(() {
- _highlight = false;
- });
- }
- void _handlePointerCancel(_) {
- setState(() {
- _highlight = false;
- });
- }
-}
« 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