Skip to content

Commit 7ccb8f8

Browse files
add param checking and removed default values
1 parent 3a69f02 commit 7ccb8f8

File tree

5 files changed

+4
-8
lines changed

5 files changed

+4
-8
lines changed

CHANGELOG.md

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
## 0.6.1
2-
3-
- Fix for image preview param types
4-
51
## 0.6.0
62

73
- Upgraded to Null-safety, minimum Dart SDK required 2.12.0

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Add this to your package's `pubspec.yaml` file:
2424

2525
```yml
2626
dependencies:
27-
dart_appwrite: ^0.6.1
27+
dart_appwrite: ^0.6.2
2828
```
2929
3030
You can install packages from the command line:

lib/client.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Client {
1313

1414
this.headers = {
1515
'content-type': 'application/json',
16-
'x-sdk-version': 'appwrite:dart:0.6.1',
16+
'x-sdk-version': 'appwrite:dart:0.6.2',
1717
'X-Appwrite-Response-Format':'0.8.0',
1818
};
1919

lib/services/storage.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class Storage extends Service {
133133
/// and spreadsheets, will return the file icon image. You can also pass query
134134
/// string arguments for cutting and resizing your preview image.
135135
///
136-
Future<Response> getFilePreview({required String fileId, int width = 0, int height = 0, int quality = 100, int borderWidth = 0, String borderColor = '', int borderRadius = 0, double opacity = 1, int rotation = 0, String background = '', String output = ''}) {
136+
Future<Response> getFilePreview({required String fileId, int width = 0, int height = 0, int quality = 100, int borderWidth = 0, String borderColor = '', int borderRadius = 0, int opacity = 1, int rotation = 0, String background = '', String output = ''}) {
137137
final String path = '/storage/files/{fileId}/preview'.replaceAll(RegExp('{fileId}'), fileId);
138138

139139
final Map<String, dynamic> params = {

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: dart_appwrite
2-
version: 0.6.1
2+
version: 0.6.2
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-dart

0 commit comments

Comments
 (0)