marcos930807 / awesomeDialogs

A new Flutter package project for simple a awesome dialogs
Other
339 stars 110 forks source link

Sometimes pressing OK needs 3 times in order to close the popup #83

Closed intercretasyo closed 2 years ago

intercretasyo commented 2 years ago

Hi,

Sometimes no issue in pressing the OK button. The pop-up will close already. But sometimes I experience where the OK needs to be pressed 3 times in order to close the pop-up. When this issue happens, I notice that the background is closer to black. Then as I keep on pressing OK, the background becomes clearer and clearer.

intercretasyo commented 2 years ago

Hi,

I'm not sure but it could be this code that messes the pop-up. FocusScope.of(context).unfocus();

marcos930807 commented 2 years ago

You need to be aware of what navigator you are using and if is a nested one. Try use the prop useRootNavigator.

intercretasyo commented 2 years ago

Hi,

Thanks for your suggestion. I will look into it.