Skip to content

Commit 948b14b

Browse files
authored
Merge pull request #287 from appwrite/dev
feat: Flutter SDK update for version 20.3.2
2 parents 34cfa41 + eef8f11 commit 948b14b

20 files changed

+51
-47
lines changed

CHANGELOG.md

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

3+
## 20.3.2
4+
5+
* Fix OAuth2 browser infinite redirect issue
6+
37
## 20.3.1
48

59
* Fix passing of `null` values and stripping only non-nullable optional parameters from the request body

README.md

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

2222
```yml
2323
dependencies:
24-
appwrite: ^20.3.1
24+
appwrite: ^20.3.2
2525
```
2626
2727
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
Avatars avatars = Avatars(client);
88

99
// Downloading file
10-
UInt8List bytes = await avatars.getBrowser(
10+
Uint8List bytes = 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
Avatars avatars = Avatars(client);
88

99
// Downloading file
10-
UInt8List bytes = await avatars.getCreditCard(
10+
Uint8List bytes = 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,7 +7,7 @@ Client client = Client()
77
Avatars avatars = Avatars(client);
88

99
// Downloading file
10-
UInt8List bytes = await avatars.getFavicon(
10+
Uint8List bytes = await avatars.getFavicon(
1111
url: 'https://example.com',
1212
)
1313

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
Avatars avatars = Avatars(client);
88

99
// Downloading file
10-
UInt8List bytes = await avatars.getFlag(
10+
Uint8List bytes = 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
Avatars avatars = Avatars(client);
88

99
// Downloading file
10-
UInt8List bytes = await avatars.getImage(
10+
Uint8List bytes = 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
Avatars avatars = Avatars(client);
88

99
// Downloading file
10-
UInt8List bytes = await avatars.getInitials(
10+
Uint8List bytes = 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
Avatars avatars = Avatars(client);
88

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

docs/examples/avatars/get-screenshot.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ Client client = Client()
77
Avatars avatars = Avatars(client);
88

99
// Downloading file
10-
UInt8List bytes = await avatars.getScreenshot(
10+
Uint8List bytes = await avatars.getScreenshot(
1111
url: 'https://example.com',
1212
headers: {}, // optional
1313
viewportWidth: 1, // optional
1414
viewportHeight: 1, // optional
1515
scale: 0.1, // optional
16-
theme: .light, // optional
16+
theme: Theme.light, // optional
1717
userAgent: '<USER_AGENT>', // optional
1818
fullpage: false, // optional
1919
locale: '<LOCALE>', // optional
20-
timezone: .africaAbidjan, // optional
20+
timezone: Timezone.africaAbidjan, // optional
2121
latitude: -90, // optional
2222
longitude: -180, // optional
2323
accuracy: 0, // optional
@@ -27,7 +27,7 @@ UInt8List bytes = await avatars.getScreenshot(
2727
width: 0, // optional
2828
height: 0, // optional
2929
quality: -1, // optional
30-
output: .jpg, // optional
30+
output: Output.jpg, // optional
3131
)
3232

3333
final file = File('path_to_file/filename.ext');
@@ -41,11 +41,11 @@ FutureBuilder(
4141
viewportWidth:1 , // optional
4242
viewportHeight:1 , // optional
4343
scale:0.1 , // optional
44-
theme: .light, // optional
44+
theme: Theme.light, // optional
4545
userAgent:'<USER_AGENT>' , // optional
4646
fullpage:false , // optional
4747
locale:'<LOCALE>' , // optional
48-
timezone: .africaAbidjan, // optional
48+
timezone: Timezone.africaAbidjan, // optional
4949
latitude:-90 , // optional
5050
longitude:-180 , // optional
5151
accuracy:0 , // optional
@@ -55,7 +55,7 @@ FutureBuilder(
5555
width:0 , // optional
5656
height:0 , // optional
5757
quality:-1 , // optional
58-
output: .jpg, // optional
58+
output: Output.jpg, // optional
5959
), // Works for both public file and private file, for private files you need to be logged in
6060
builder: (context, snapshot) {
6161
return snapshot.hasData && snapshot.data != null

0 commit comments

Comments
 (0)