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
- Which flutter SDK version for Self Hoste...
Hi all, Is there a good way to figure out which version of flutter SDK and Dart SDK is current for latest available self-hosted 1.8.0 ? I know new features are...
- redirect_uri errors on flutter client
Hi all, I'm using the flutter client for my app to do appwrite auth and use the JWTs to send to my backend. When I try to sign in with SSO, I get this: https:/...
- Problem with getting rows from related t...
Hi, I migrated the Appwrite SDK to 1.8.0 and the package in my Flutter app to version ^20.3.2. I noticed one thing is different. Previously, when I got a JSON r...