From f4872cdd671cd673b43defe788fd293f65c44c8b Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Thu, 12 Mar 2015 13:08:44 -0700 Subject: [PATCH] Implement an OverscrollCurve for Scrollable When using OverscrollCurve, we continue to scroll beyond the top of the scrollable area but the scroll delta is reduced by 2x. A future CL will add an animation at gesturescrollend to relax back to scroll position 0.0. R=eseidel@chromium.org Review URL: https://codereview.chromium.org/1002953003 --- examples/stocks-fn/stocklist.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/stocks-fn/stocklist.dart b/examples/stocks-fn/stocklist.dart index d904ef1c2a8..883ee378692 100644 --- a/examples/stocks-fn/stocklist.dart +++ b/examples/stocks-fn/stocklist.dart @@ -8,7 +8,7 @@ class Stocklist extends FixedHeightScrollable { Object key, this.stocks, this.query - }) : super(key: key, scrollCurve: new BoundedScrollCurve(minOffset: 0.0)); + }) : super(key: key, scrollCurve: new OverscrollCurve()); List buildItems(int start, int count) { return stocks