Skip to content

Commit

Permalink
FIX: Issue 399
Browse files Browse the repository at this point in the history
jamesblasco#399

Note: this addresses the crash. Tap on status bar to dismiss still does not work.
  • Loading branch information
T-P-F committed Dec 29, 2024
1 parent a87f82b commit fd10a9f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modal_bottom_sheet/lib/src/bottom_sheet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ class ModalBottomSheetState extends State<ModalBottomSheet>
return StatusBarGestureDetector(
child: child,
onTap: (context) {
if (!_scrollController.hasClients) return;
_scrollController.animateTo(
0.0,
duration: const Duration(milliseconds: 1000),
Expand Down

0 comments on commit fd10a9f

Please sign in to comment.