Update flutter GETTING_STARTED.md
This commit is contained in:
parent
2c3b860e63
commit
006d4237f5
1 changed files with 3 additions and 9 deletions
|
@ -105,10 +105,7 @@ When trying to connect to Appwrite from an emulator or a mobile device, localhos
|
||||||
Account account = Account(client);
|
Account account = Account(client);
|
||||||
final user = await account
|
final user = await account
|
||||||
.create(
|
.create(
|
||||||
userId: ID.unique(),
|
ID.unique(), email = 'email@example.com', phone = '+123456789', password = 'password', name = "Walter O'Brien"
|
||||||
email: 'me@appwrite.io',
|
|
||||||
password: 'password',
|
|
||||||
name: 'My Name'
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -133,10 +130,7 @@ void main() {
|
||||||
|
|
||||||
final user = await account
|
final user = await account
|
||||||
.create(
|
.create(
|
||||||
userId: ID.unique(),
|
ID.unique(), email = 'email@example.com', phone = '+123456789', password = 'password', name = "Walter O'Brien"
|
||||||
email: 'me@appwrite.io',
|
|
||||||
password: 'password',
|
|
||||||
name: 'My Name'
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
@ -148,7 +142,7 @@ The Appwrite Flutter SDK raises `AppwriteException` object with `message`, `type
|
||||||
Account account = Account(client);
|
Account account = Account(client);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final user = await account.create(userId: ID.unique(), email: ‘email@example.com’,password: ‘password’, name: ‘name’);
|
final user = await account.create(ID.unique(), email = 'email@example.com', phone = '+123456789', password = 'password', name = "Walter O'Brien");
|
||||||
print(user.toMap());
|
print(user.toMap());
|
||||||
} on AppwriteException catch(e) {
|
} on AppwriteException catch(e) {
|
||||||
//show message to user or do other operation based on error as required
|
//show message to user or do other operation based on error as required
|
||||||
|
|
Loading…
Reference in a new issue