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

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

Issue 987613002: Make stocksapp.dart almost pass the dart analyzer. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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 | « no previous file | sky/examples/fn/widgets/material.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 3c134aa924d260aa2679e9cf0455938935845777..ecb558962ad1523ae25c4fafcfebefc02a585150 100644
--- a/sky/examples/fn/widgets/fixedheightscrollable.dart
+++ b/sky/examples/fn/widgets/fixedheightscrollable.dart
@@ -106,22 +106,22 @@ abstract class FixedHeightScrollable extends Component {
_scheduleFlingUpdate();
}
- void _handleScrollUpdate(sky.Event event) {
+ void _handleScrollUpdate(sky.GestureEvent event) {
_scrollBy(-event.dy);
}
- void _handleFlingStart(sky.Event event) {
+ void _handleFlingStart(sky.GestureEvent event) {
setState(() {
_flingCurve = new FlingCurve(-event.velocityY, event.timeStamp);
_scheduleFlingUpdate();
});
}
- void _handleFlingCancel(sky.Event event) {
+ void _handleFlingCancel(sky.GestureEvent event) {
_stopFling();
}
- void _handleWheel(sky.Event event) {
+ void _handleWheel(sky.WheelEvent event) {
_scrollBy(-event.offsetY);
}
}
« no previous file with comments | « no previous file | sky/examples/fn/widgets/material.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698