Skip to content

Commit 9dd03c8

Browse files
Merge pull request #191 from appwrite/dev
fix: params using enums
2 parents 12b0f52 + 2b967bf commit 9dd03c8

File tree

8 files changed

+15
-11
lines changed

8 files changed

+15
-11
lines changed

CHANGELOG.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 12.0.1
2+
3+
* Fixed parameters using enum types
4+
15
## 12.0.0
26

37
* Added enum support
@@ -95,7 +99,7 @@
9599
4. `greaterEqual` renamed to `greaterThanEqual`
96100
* `User` response model is now renamed to `Account`
97101

98-
**Full Changelog for Appwrite 1.0.0 can be found here**:
102+
**Full Changelog for Appwrite 1.0.0 can be found here**:
99103
https://github.com/appwrite/appwrite/blob/master/CHANGES.md
100104

101105
## 7.0.0
@@ -148,7 +152,7 @@ https://github.com/appwrite/appwrite/blob/master/CHANGES.md
148152

149153
## 3.0.0
150154
- Support for Appwrite 0.12
151-
- **BREAKING** Updated database service to adapt 0.12 API
155+
- **BREAKING** Updated database service to adapt 0.12 API
152156
- **BREAKING** Custom ID support while creating resources
153157
- [View all the changes](https://github.com/appwrite/appwrite/blob/master/CHANGES.md#version-0120)
154158

@@ -226,7 +230,7 @@ https://github.com/appwrite/appwrite/blob/master/CHANGES.md
226230
- Fallback Cookies for Flutter Web if 3rd party cookies are blocked
227231
- Custom User Agent Support
228232
- [Update membership roles](https://appwrite.io/docs/references/cloud/client-flutter/teams?sdk=flutter#updateMembershipRoles)
229-
- New awesome image preview features, supports borderRadius, borderColor, borderWidth
233+
- New awesome image preview features, supports borderRadius, borderColor, borderWidth
230234

231235
## 0.5.0-dev.1
232236

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: ^12.0.0
24+
appwrite: ^12.0.1
2525
```
2626
2727
You can install packages from the command line:

lib/services/account.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ class Account extends Service {
257257
const String apiPath = '/account/mfa/challenge';
258258

259259
final Map<String, dynamic> apiParams = {
260-
'factor': factor,
260+
'factor': factor.value,
261261
};
262262

263263
final Map<String, String> apiHeaders = {

lib/services/functions.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class Functions extends Service {
4141
'body': body,
4242
'async': xasync,
4343
'path': path,
44-
'method': method,
44+
'method': method?.value,
4545
'headers': headers,
4646
};
4747

lib/services/storage.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,15 +172,15 @@ class Storage extends Service {
172172

173173
'width': width,
174174
'height': height,
175-
'gravity': gravity,
175+
'gravity': gravity?.value,
176176
'quality': quality,
177177
'borderWidth': borderWidth,
178178
'borderColor': borderColor,
179179
'borderRadius': borderRadius,
180180
'opacity': opacity,
181181
'rotation': rotation,
182182
'background': background,
183-
'output': output,
183+
'output': output?.value,
184184

185185
'project': client.config['project'],
186186
};

lib/src/client_browser.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class ClientBrowser extends ClientBase with ClientMixin {
4343
'x-sdk-name': 'Flutter',
4444
'x-sdk-platform': 'client',
4545
'x-sdk-language': 'flutter',
46-
'x-sdk-version': '12.0.0',
46+
'x-sdk-version': '12.0.1',
4747
'X-Appwrite-Response-Format': '1.5.0',
4848
};
4949

lib/src/client_io.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class ClientIO extends ClientBase with ClientMixin {
6464
'x-sdk-name': 'Flutter',
6565
'x-sdk-platform': 'client',
6666
'x-sdk-language': 'flutter',
67-
'x-sdk-version': '12.0.0',
67+
'x-sdk-version': '12.0.1',
6868
'X-Appwrite-Response-Format' : '1.5.0',
6969
};
7070

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: appwrite
2-
version: 12.0.0
2+
version: 12.0.1
33
description: Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API
44
homepage: https://appwrite.io
55
repository: https://github.com/appwrite/sdk-for-flutter

0 commit comments

Comments
 (0)