Showing
1 changed file
with
1 additions
and
1 deletions
@@ -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 | } |
-
Please register or login to post a comment