Skip to content

Commit

Permalink
Merge pull request #62 from nfsxreloader/fix/disable-content-scrollin…
Browse files Browse the repository at this point in the history
…g-when-animation-state-not-expanded

Disable content scrolling when sheet is not expanded
  • Loading branch information
mcrovero authored Jul 5, 2021
2 parents b03d4f6 + 369aa57 commit cf1e4c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/src/bottom_sheet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ class RubberBottomSheetState extends State<RubberBottomSheet>
bool get halfState => controller.halfBound != null;

bool get _shouldScroll =>
_scrollController != null && _scrollController!.hasClients;
_scrollController != null &&
_scrollController!.hasClients &&
controller.value >= controller.upperBound!;
bool _scrolling = false;

bool get _hasHeader => widget.header != null;
Expand Down

0 comments on commit cf1e4c6

Please sign in to comment.