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
This commit is contained in:
Adam Barth 2015-03-12 13:08:44 -07:00
parent a3885659c5
commit f4872cdd67

View File

@ -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<Node> buildItems(int start, int count) {
return stocks