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

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

Issue 975863003: Don't hardcode the list of events types in fn (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: More careful event syncing Created 5 years, 10 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/drawer.dart ('k') | sky/examples/fn/widgets/icon.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/fn/widgets/fixedheightscrollable.dart
diff --git a/sky/examples/fn/widgets/fixedheightscrollable.dart b/sky/examples/fn/widgets/fixedheightscrollable.dart
index ef343e26768f611990c85003263c59732bb5f6f6..3c134aa924d260aa2679e9cf0455938935845777 100644
--- a/sky/examples/fn/widgets/fixedheightscrollable.dart
+++ b/sky/examples/fn/widgets/fixedheightscrollable.dart
@@ -50,10 +50,6 @@ abstract class FixedHeightScrollable extends Component {
return new Container(
style: _style,
- onFlingStart: _handleFlingStart,
- onFlingCancel: _handleFlingCancel,
- onScrollUpdate: _handleScrollUpdate,
- onWheel: _handleWheel,
children: [
new Container(
style: _scrollAreaStyle,
@@ -61,7 +57,11 @@ abstract class FixedHeightScrollable extends Component {
children: items
)
]
- );
+ )
+ ..events.listen('gestureflingstart', _handleFlingStart)
+ ..events.listen('gestureflingcancel', _handleFlingCancel)
+ ..events.listen('gesturescrollupdate', _handleScrollUpdate)
+ ..events.listen('wheel', _handleWheel);
}
void willUnmount() {
« no previous file with comments | « sky/examples/fn/widgets/drawer.dart ('k') | sky/examples/fn/widgets/icon.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698