Fixes the issue where you would tap outside the prompt and it would no longer open. This happens because the modal is closed but the state is not updated. My solution was to simply call the onCancelPressed which is also called when the "cancel" option is clicked.
Fixes the issue where you would tap outside the prompt and it would no longer open. This happens because the modal is closed but the state is not updated. My solution was to simply call the
onCancelPressed
which is also called when the "cancel" option is clicked.