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

Unified Diff: sky/sdk/lib/animation/scroll_behavior.dart

Issue 1223153004: Make the drawer, popup menus, dialogs, and settings page scrollable. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 5 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
Index: sky/sdk/lib/animation/scroll_behavior.dart
diff --git a/sky/sdk/lib/animation/scroll_behavior.dart b/sky/sdk/lib/animation/scroll_behavior.dart
index b07ee8f7c6d182101d52c90d2d29ee8d2259279e..b059899f652cf4af71ed3173eafb13178140433d 100644
--- a/sky/sdk/lib/animation/scroll_behavior.dart
+++ b/sky/sdk/lib/animation/scroll_behavior.dart
@@ -19,11 +19,11 @@ abstract class ScrollBehavior {
}
class BoundedScrollBehavior extends ScrollBehavior {
+ BoundedScrollBehavior({this.minOffset: 0.0, this.maxOffset});
+
double minOffset;
double maxOffset;
- BoundedScrollBehavior({this.minOffset: 0.0, this.maxOffset});
-
double applyCurve(double scrollOffset, double scrollDelta) {
double newScrollOffset = scrollOffset + scrollDelta;
if (minOffset != null)

Powered by Google App Engine
This is Rietveld 408576698