-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
showing error (error: The method 'document' isn't defined for the type 'CollectionReference'. ) #6
Comments
Ohk
…On Tue, 9 Mar 2021, 2:48 pm vandan bhingradiya, ***@***.***> wrote:
u having working project this one??than plz share with me..bcoz cart
functions doesnot work for me plz help
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQH6KYJ7NVGATWF3MO63O5LTCXRUZANCNFSM4WLBJY2A>
.
|
hi, can I know what are the solutions? I'm having the same error too. |
Replace document with doc
…On Tue, 13 Jul 2021, 10:51 am kaitheiron, ***@***.***> wrote:
hi, can I know what are the solutions? I'm having the same error too.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQH6KYN5IKOCZO3RFSIBZBDTXPEL5ANCNFSM4WLBJY2A>
.
|
oh lol thanks a lot! and the setData also got error, and I replaced it with set. Am I right? |
Yes... If u get any error.. Search it on stackoverflow
…On Tue, 13 Jul 2021, 11:08 am kaitheiron, ***@***.***> wrote:
oh lol thanks a lot! and the setData also got error, and I replaced it
with set. Am I right?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQH6KYLZDYZZPNQBNS46BADTXPGPBANCNFSM4WLBJY2A>
.
|
Will do! Thanks again, appreciate it so much. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Future signUp() async{
try{
_status = Status.Authenticating;
notifyListeners();
await _auth.createUserWithEmailAndPassword(email: email.text.trim(), password: password.text.trim()).then((result){
_firestore.collection('users').document(result.user.uid).setData({ error line
"name": name.text,
"email": email.text,
"id": result.user.uid
});
});
return true;
}catch(e) {
return _onError(e.toString());
}
}
The text was updated successfully, but these errors were encountered: