You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**This SDK is compatible with Appwrite server version 1.7.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-dart/releases).**
10
+
**This SDK is compatible with Appwrite server version 1.8.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-dart/releases).**
11
11
12
12
> This is the Dart SDK for integrating with Appwrite from your Dart server-side code. If you're looking for the Flutter SDK you should check [appwrite/sdk-for-flutter](https://github.com/appwrite/sdk-for-flutter)
13
13
@@ -23,7 +23,7 @@ Add this to your package's `pubspec.yaml` file:
23
23
24
24
```yml
25
25
dependencies:
26
-
dart_appwrite: ^16.2.0
26
+
dart_appwrite: ^17.0.0
27
27
```
28
28
29
29
You can install packages from the command line:
@@ -39,38 +39,29 @@ dart pub add dart_appwrite
39
39
Once you add the dependencies, its extremely easy to get started with the SDK; All you need to do is import the package in your code, set your Appwrite credentials, and start making API calls. Below is a simple example:
The Appwrite Dart SDK raises `AppwriteException` object with `message`, `code` and `response` properties. You can handle any errors by catching `AppwriteException` and present the `message` to the user or handle it yourself based on the provided error information. Below is an example.
64
59
65
60
```dart
66
-
Users users = Users(client);
67
-
68
61
try {
69
-
final user = await users.create(userId: ID.unique(), email: "[email protected]", phone: "+123456789", password: "password", name: "Walter O'Brien");
70
-
print(user.toMap());
62
+
User user = await users.create(...);
71
63
} on AppwriteException catch(e) {
72
-
//show message to user or do other operation based on error as required
0 commit comments