diff --git a/modal_bottom_sheet/lib/src/bottom_sheet.dart b/modal_bottom_sheet/lib/src/bottom_sheet.dart index 4cbc1c3..177df69 100644 --- a/modal_bottom_sheet/lib/src/bottom_sheet.dart +++ b/modal_bottom_sheet/lib/src/bottom_sheet.dart @@ -414,6 +414,7 @@ class ModalBottomSheetState extends State return StatusBarGestureDetector( child: child, onTap: (context) { + if (!_scrollController.hasClients) return; _scrollController.animateTo( 0.0, duration: const Duration(milliseconds: 1000),