i'm using firebase auth, when I try call the method await FirebaseAuth.instance.signInWithEmailAndPassword (email: email, password: password); and the credentials are wrong, try catch not working. the output message is: enter image description here I using firebase_core: ^1.0.0 and firebase_auth: ^1.0.0
I've already tried what the documentation recommends but still can't find a solution. I have runner flutter doctor, but it does not indicate anything strange. Someone help me for the solution?
https://user-images.githubusercontent.com/7356816/110394113-7b944700-8031-11eb-95f6-1e2b9cac5483.png
Please post the relevant code for more help.
But it seems you're missing the type for the error.
Try something like:
try {
//...
} catch (Exception error) { // include type
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.