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
- Realtime: Listener not triggered on upda...
I self host appwrite 1.8.1. The genereal functionallity works fine. But my realtime subscription isn't updating. I see "Received heartbeat response from realtim...
- Impossible to get USER after createEmail...
Am using provider to deal with functions linked to appwrite. Here is my login. Future<String?> login(String email, String password) async { try { aw...
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...