Check out example codes for "alertdialog flutter outside click disble". It will help you in understanding the concepts better.

Code Example 1

showDialog(
  barrierDismissible: false, // <-- this
  builder: ...
)

Learn ReactJs, React Native from akashmittal.com