diff --git a/sheet/lib/src/physics.dart b/sheet/lib/src/physics.dart index 6cb3cc3..8c2d3c1 100644 --- a/sheet/lib/src/physics.dart +++ b/sheet/lib/src/physics.dart @@ -139,6 +139,10 @@ class BouncingSheetPhysics extends ScrollPhysics with SheetPhysics { } return true; }()); + // Prevent scrolling beyond the maximum position + if (value > position.maxScrollExtent) { + return value - position.maxScrollExtent; + } if (!overflowViewport) { // overscroll if (position.viewportDimension <= position.pixels &&