Commit 1fde4bb8 authored by Adam Barth's avatar Adam Barth

Merge pull request #796 from abarth/fix_tests

Don't divide by zero
parents aaeaed9b b2de3a70
......@@ -439,7 +439,7 @@ abstract class ScrollableWidgetList extends Scrollable {
int itemShowCount = 0;
Offset viewportOffset = Offset.zero;
if (_containerExtent != null && _containerExtent > 0.0) {
if (_containerExtent != null && _containerExtent > 0.0 && itemCount > 0) {
if (paddedScrollOffset < scrollBehavior.minScrollOffset) {
// Underscroll
double visibleExtent = _containerExtent + paddedScrollOffset;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment