iamshaunjp / flutter-firebase

All course files for the Flutter & Firebase tutorial playlist on The Net Ninja YouTube channel
580 stars 441 forks source link

getting error in AuthResult AuthResult result #22

Open umesh-khatiwada opened 3 years ago

umesh-khatiwada commented 3 years ago

getting error in AuthResult AuthResult result = await _auth.signInAnonymously(); ...can you help me to solve the error..

and dont know why, FirebaseUser is also showing some kinds of error ... Screenshot (620)

thomasjerryarackal commented 3 years ago

what to do with this error

Vishal07gt commented 3 years ago

I am also facing same error. Any Solution ??

Vishal07gt commented 3 years ago

Screenshot 2021-01-17 105949

Use the same versions of this as mentioned in tutorials... in pubspec.yaml firebase_auth: ^0.14.0+5 cloud_firestore: ^0.12.9+4

Shiru99 commented 3 years ago

as @Vishal07gt told either use earlier versions of dependencies or update the terms like

'FirebaseUser' with 'User' '_auth.onAuthStateChanged' with '_auth.authStateChanges()' 'Firestore' with 'FirebaseFirestore' 'document' with 'doc' 'setData' with 'set'

AFZAL-123 commented 3 years ago

I tried all the suggested solution but then also getting error! image

gofranshits commented 3 years ago

I tried all the suggested solution but then also getting error! image

now you need to change the User class into another name as User now is used by firestore_auth, in the model User change the class name from User to anything else and change the name wherever it's been used to the new name

clusterDe commented 3 years ago

as @Vishal07gt told either use earlier versions of dependencies or update the terms like

'FirebaseUser' with 'User' '_auth.onAuthStateChanged' with '_auth.authStateChanges()' 'Firestore' with 'FirebaseFirestore' 'document' with 'doc' 'setData' with 'set'

thanks a lot really helpfull