Skip to content

Commit cca7588

Browse files
committed
fix readmes and changes
1 parent 7fe3441 commit cca7588

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

CHANGELOG.md

+6
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.0.0
28
- BREAKING All services and methods now return structured response objects instead of `Response` object
39

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void main() async {
5151
Users users = Users(client);
5252
5353
try {
54-
final response = await users.create(email: ‘[email protected]’,password: ‘password’, name: ‘name’);
54+
final response = await users.create(userId: '[USER_ID]', email: ‘[email protected]’,password: ‘password’, name: ‘name’);
5555
print(response.data);
5656
} on AppwriteException catch(e) {
5757
print(e.message);
@@ -66,7 +66,7 @@ The Appwrite Dart SDK raises `AppwriteException` object with `message`, `code` a
6666
Users users = Users(client);
6767
6868
try {
69-
final response = await users.create(email: ‘[email protected]’,password: ‘password’, name: ‘name’);
69+
final response = await users.create(userId: '[USER_ID]', email: ‘[email protected]’,password: ‘password’, name: ‘name’);
7070
print(response.data);
7171
} on AppwriteException catch(e) {
7272
//show message to user or do other operation based on error as required

example/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Create a new user:
1919
Users users = Users(client);
2020
2121
Response result = await users.create(
22+
userId: '[USER_ID]',
2223
2324
password: 'password',
2425
);
@@ -43,6 +44,7 @@ Storage storage = Storage(client);
4344
MultipartFile file = MultipartFile.fromFile('./path-to-file/image.jpg', filename: 'image.jpg');
4445
4546
storage.createFile(
47+
fileId: '[FILE_ID]',
4648
file: file,
4749
read: ['role:all'],
4850
write: []

0 commit comments

Comments
 (0)