Back

Extend account creation information

  • 0
  • Users
  • Flutter
  • Accounts
Hz.Bootlegger
30 Jan, 2024, 13:02

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?

TL;DR
Developers are looking for guidance on how to extend the account creation process in a Flutter app. They mention that they usually use the `account.create()` method from the Appwrite library, but they want to also collect additional information like the user's gender. They provide a link to learn more about preferences. Solution: To extend the create method, developers can collect all the necessary information before calling `account.create()`, and then pass that information as additional parameters to the method. They can also store the additional information in preferences or a database depending on their preferences. The developers are advised to refer to the link provided for more information on using
kamal.panara
30 Jan, 2024, 13:53

you can store such information in preferences of user's account or in database.

kamal.panara
30 Jan, 2024, 13:54
Hz.Bootlegger
30 Jan, 2024, 13:54

in creation phase or later ?

kamal.panara
30 Jan, 2024, 13:56

it's all upto you on how you are collecting and storing information on your frontend (flutter app).

kamal.panara
30 Jan, 2024, 13:57

you can collect all information first and then create account at the end as well as store the information.

kamal.panara
30 Jan, 2024, 13:57

either to database or preferences.

kamal.panara
30 Jan, 2024, 13:57

however you like.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more