From ba8cafbd4529f573821a6c4dcfd0e7276abed781 Mon Sep 17 00:00:00 2001 From: Pratik Gupta <91310568+GuptaPratik02@users.noreply.github.com> Date: Tue, 17 Oct 2023 18:25:00 +0530 Subject: [PATCH] changes made flutter GETTING_STARTED.md --- docs/sdks/flutter/GETTING_STARTED.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/sdks/flutter/GETTING_STARTED.md b/docs/sdks/flutter/GETTING_STARTED.md index 70d8db58a5..49767d9951 100644 --- a/docs/sdks/flutter/GETTING_STARTED.md +++ b/docs/sdks/flutter/GETTING_STARTED.md @@ -105,7 +105,7 @@ When trying to connect to Appwrite from an emulator or a mobile device, localhos Account account = Account(client); final user = await account .create( - ID.unique(), email = 'email@example.com', phone = '+123456789', password = 'password', name = "Walter O'Brien" + userId: ID.unique(), email: 'email@example.com', phone: '+123456789', password: 'password', name: "Walter O'Brien" ); ``` @@ -130,7 +130,7 @@ void main() { final user = await account .create( - ID.unique(), email = 'email@example.com', phone = '+123456789', password = 'password', name = "Walter O'Brien" + userId: ID.unique(), email: 'email@example.com', phone: '+123456789', password: 'password', name: "Walter O'Brien" ); } ``` @@ -142,7 +142,7 @@ The Appwrite Flutter SDK raises `AppwriteException` object with `message`, `type Account account = Account(client); try { - final user = await account.create(ID.unique(), email = 'email@example.com', phone = '+123456789', password = 'password', name = "Walter O'Brien"); + final user = await account.create(userId: ID.unique(), email: 'email@example.com', phone: '+123456789', password: 'password', name: "Walter O'Brien"); print(user.toMap()); } on AppwriteException catch(e) { //show message to user or do other operation based on error as required