Skip to content

Commit

Permalink
add param checking and removed default values
Browse files Browse the repository at this point in the history
  • Loading branch information
TorstenDittmann committed Jun 2, 2021
1 parent 3a69f02 commit 7ccb8f8
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 8 deletions.
4 changes: 0 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
## 0.6.1

- Fix for image preview param types

## 0.6.0

- Upgraded to Null-safety, minimum Dart SDK required 2.12.0
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Add this to your package's `pubspec.yaml` file:

```yml
dependencies:
dart_appwrite: ^0.6.1
dart_appwrite: ^0.6.2
```
You can install packages from the command line:
Expand Down
2 changes: 1 addition & 1 deletion lib/client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Client {

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

Expand Down
2 changes: 1 addition & 1 deletion lib/services/storage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class Storage extends Service {
/// and spreadsheets, will return the file icon image. You can also pass query
/// string arguments for cutting and resizing your preview image.
///
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 = ''}) {
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 = ''}) {
final String path = '/storage/files/{fileId}/preview'.replaceAll(RegExp('{fileId}'), fileId);

final Map<String, dynamic> params = {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: dart_appwrite
version: 0.6.1
version: 0.6.2
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
homepage: https://appwrite.io
repository: https://github.com/appwrite/sdk-for-dart
Expand Down

0 comments on commit 7ccb8f8

Please sign in to comment.