Skip to content

Commit c0692d2

Browse files
authored
Merge pull request #98 from appwrite/dev
feat: Dart SDK update for version 20.0.0
2 parents 06d8deb + a4839ee commit c0692d2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+320
-272
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Change Log
22

3+
## 20.0.0
4+
5+
* Rename `VCSDeploymentType` enum to `VCSReferenceType`
6+
* Change `createTemplateDeployment` method signature: replace `version` parameter with `type` (TemplateReferenceType) and `reference` parameters
7+
* Add `Theme`, `Timezone` and `Output` enums
8+
39
## 19.4.0
410

511
* Add `getScreenshot` method to `Avatars` service

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Add this to your package's `pubspec.yaml` file:
2323

2424
```yml
2525
dependencies:
26-
dart_appwrite: ^19.4.0
26+
dart_appwrite: ^20.0.0
2727
```
2828
2929
You can install packages from the command line:

docs/examples/avatars/get-browser.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Client client = Client()
77

88
Avatars avatars = Avatars(client);
99

10-
UInt8List result = await avatars.getBrowser(
10+
Uint8List result = await avatars.getBrowser(
1111
code: Browser.avantBrowser,
1212
width: 0, // (optional)
1313
height: 0, // (optional)

docs/examples/avatars/get-credit-card.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Client client = Client()
77

88
Avatars avatars = Avatars(client);
99

10-
UInt8List result = await avatars.getCreditCard(
10+
Uint8List result = await avatars.getCreditCard(
1111
code: CreditCard.americanExpress,
1212
width: 0, // (optional)
1313
height: 0, // (optional)

docs/examples/avatars/get-favicon.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ Client client = Client()
77

88
Avatars avatars = Avatars(client);
99

10-
UInt8List result = await avatars.getFavicon(
10+
Uint8List result = await avatars.getFavicon(
1111
url: 'https://example.com',
1212
);

docs/examples/avatars/get-flag.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Client client = Client()
77

88
Avatars avatars = Avatars(client);
99

10-
UInt8List result = await avatars.getFlag(
10+
Uint8List result = await avatars.getFlag(
1111
code: Flag.afghanistan,
1212
width: 0, // (optional)
1313
height: 0, // (optional)

docs/examples/avatars/get-image.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Client client = Client()
77

88
Avatars avatars = Avatars(client);
99

10-
UInt8List result = await avatars.getImage(
10+
Uint8List result = await avatars.getImage(
1111
url: 'https://example.com',
1212
width: 0, // (optional)
1313
height: 0, // (optional)

docs/examples/avatars/get-initials.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Client client = Client()
77

88
Avatars avatars = Avatars(client);
99

10-
UInt8List result = await avatars.getInitials(
10+
Uint8List result = await avatars.getInitials(
1111
name: '<NAME>', // (optional)
1212
width: 0, // (optional)
1313
height: 0, // (optional)

docs/examples/avatars/get-qr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Client client = Client()
77

88
Avatars avatars = Avatars(client);
99

10-
UInt8List result = await avatars.getQR(
10+
Uint8List result = await avatars.getQR(
1111
text: '<TEXT>',
1212
size: 1, // (optional)
1313
margin: 0, // (optional)

docs/examples/avatars/get-screenshot.md

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,28 @@ Client client = Client()
77

88
Avatars avatars = Avatars(client);
99

10-
UInt8List result = await avatars.getScreenshot(
10+
Uint8List result = await avatars.getScreenshot(
1111
url: 'https://example.com',
12-
headers: {}, // (optional)
13-
viewportWidth: 1, // (optional)
14-
viewportHeight: 1, // (optional)
15-
scale: 0.1, // (optional)
16-
theme: .light, // (optional)
17-
userAgent: '<USER_AGENT>', // (optional)
18-
fullpage: false, // (optional)
19-
locale: '<LOCALE>', // (optional)
20-
timezone: .africaAbidjan, // (optional)
21-
latitude: -90, // (optional)
22-
longitude: -180, // (optional)
23-
accuracy: 0, // (optional)
24-
touch: false, // (optional)
25-
permissions: [], // (optional)
26-
sleep: 0, // (optional)
27-
width: 0, // (optional)
28-
height: 0, // (optional)
29-
quality: -1, // (optional)
30-
output: .jpg, // (optional)
12+
headers: {
13+
"Authorization": "Bearer token123",
14+
"X-Custom-Header": "value"
15+
}, // (optional)
16+
viewportWidth: 1920, // (optional)
17+
viewportHeight: 1080, // (optional)
18+
scale: 2, // (optional)
19+
theme: Theme.light, // (optional)
20+
userAgent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15', // (optional)
21+
fullpage: true, // (optional)
22+
locale: 'en-US', // (optional)
23+
timezone: Timezone.africaAbidjan, // (optional)
24+
latitude: 37.7749, // (optional)
25+
longitude: -122.4194, // (optional)
26+
accuracy: 100, // (optional)
27+
touch: true, // (optional)
28+
permissions: ["geolocation","notifications"], // (optional)
29+
sleep: 3, // (optional)
30+
width: 800, // (optional)
31+
height: 600, // (optional)
32+
quality: 85, // (optional)
33+
output: Output.jpg, // (optional)
3134
);

0 commit comments

Comments
 (0)