Jaime Blasco

fix: will pop scope on drag end

@@ -232,7 +232,7 @@ class _ModalBottomSheetState extends State<ModalBottomSheet> @@ -232,7 +232,7 @@ class _ModalBottomSheetState extends State<ModalBottomSheet>
232 _bounceDragController.reverse(); 232 _bounceDragController.reverse();
233 233
234 var canClose = true; 234 var canClose = true;
235 - if (widget.shouldClose != null && hasReachedWillPopThreshold) { 235 + if (widget.shouldClose != null) {
236 _cancelClose(); 236 _cancelClose();
237 canClose = await shouldClose(); 237 canClose = await shouldClose();
238 } 238 }