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
- client.ping() does not appear to work.
After upgrading to 1.8.0, I ran the `starter_for_flutter` and tested the ping. It failed with a "Server Error". I tried this again on my production instance (1...
- bulkUpsert and Realtime
Hey when I use Realtime on a Table for creates/updates and use the createOperations method in my Appwrite Function for bulk upserts, will the realtime trigger f...
- Project archived — request to restore
Hi, I’m the owner of project hafiz_fyp2 project (ID: 692432fd0011fac7c943). It was archived and I can’t find a restore option. Can you help me reactivate it?