Skip to content

Commit 1715208

Browse files
committed
fix readmes and changes
1 parent 21e4c2f commit 1715208

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 3.0.0
2+
- Support for 0.12
3+
- **BREAKING** Refactored database service
4+
- **BREAKING** Custom ID support while creating resources
5+
- [View all the changes](https://github.com/appwrite/appwrite/blob/master/CHANGES.md#version-0120)
6+
17
## 2.1.0
28
- Updated `flutter_we_auth` plugin now supports Flutter web for OAuth2 sessions [read more](https://github.com/appwrite/sdk-for-flutter/blob/master/README.md#web)
39
- Added linters and updated codebase to match the rules

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ When trying to connect to Appwrite from an emulator or a mobile device, localhos
133133
Account account = Account(client);
134134
Response user = await account
135135
.create(
136+
userId: '[USER_ID]',
136137
137138
password: 'password',
138139
name: 'My Name'
@@ -160,6 +161,7 @@ void main() {
160161
161162
Response user = await account
162163
.create(
164+
userId: '[USER_ID]',
163165
164166
password: 'password',
165167
name: 'My Name'
@@ -174,7 +176,7 @@ The Appwrite Flutter SDK raises `AppwriteException` object with `message`, `code
174176
Users users = Users(client);
175177
176178
try {
177-
final response = await users.create(email: ‘[email protected]’,password: ‘password’, name: ‘name’);
179+
final response = await users.create(userId: '[USER_ID]', email: ‘[email protected]’,password: ‘password’, name: ‘name’);
178180
print(response.data);
179181
} on AppwriteException catch(e) {
180182
//show message to user or do other operation based on error as required

example/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Create a new user and session:
1818
```dart
1919
Account account = Account(client);
2020
21-
Response user = await account.create(email: '[email protected]', password: 'password', name: 'My Name');
21+
Response user = await account.create(userId: '[USER_ID]', email: '[email protected]', password: 'password', name: 'My Name');
2222
2323
Response session = await account.createSession(email: '[email protected]', password: 'password');
2424
@@ -40,6 +40,7 @@ Storage storage = Storage(client);
4040
MultipartFile file = MultipartFile.fromFile('./path-to-file/image.jpg', filename: 'image.jpg');
4141
4242
storage.createFile(
43+
fileId: '[FILE_ID]',
4344
file: file,
4445
read: ['role:all'],
4546
write: []

0 commit comments

Comments
 (0)