I’m developing a login page on flutter using Firebase and I can’t display the popups for wrong email/password, What am i doing wrong? I’ve read and watch many videos and answers here but it seems i can’t find a proper solution for my problem if anyone could help me i would appreciate it. If someone can show me what am i doing wrong i ve uploaded 2 slides of my code
3
Answers
You have to pass BuildContext on button press.
Method code
You can use
Future.delayed
like this.Problem seems in your first slide, you are directly showing loading dialog from async gap. try moving our showLoading also in seperate method. This will fix the warning. For example