in flutter I do most of time try {
account.create(
userId: ID.unique(), email: email, password: pwd, name: name);
showSnackBar(context, "Account Created!");
} on AppwriteException catch (e) {
showSnackBar(context, e.toString());
debugPrint(e.toString());
}
but what if I want to take gender of user too? or some another information to show them true different content with their signs? How to extend this create method? Or any other way?
you can store such information in preferences of user's account or in database.
learn more about preferences here: https://appwrite.io/docs/references/cloud/client-flutter/account#updatePrefs
in creation phase or later ?
it's all upto you on how you are collecting and storing information on your frontend (flutter app).
you can collect all information first and then create account at the end as well as store the information.
either to database or preferences.
however you like.
Recommended threads
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...
- [SOLVED] OAuth With Google & Flutter
Hi all, I'm trying to sign in with google and it all goes swimmingly until the call back. I get a new user created on the appwrite dashboard however the flutte...