From a742bdbe11ec43d8338c3168499c588649704af7 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Fri, 4 Mar 2022 12:29:12 +0545 Subject: [PATCH] dart flutter fix --- app/config/platforms.php | 4 ++-- .../0.13.x/client-flutter/examples/storage/create-file.md | 2 +- .../server-dart/examples/functions/create-deployment.md | 2 +- .../0.13.x/server-dart/examples/storage/create-file.md | 2 +- docs/sdks/dart/CHANGELOG.md | 4 ++++ docs/sdks/flutter/CHANGELOG.md | 4 ++++ 6 files changed, 13 insertions(+), 5 deletions(-) diff --git a/app/config/platforms.php b/app/config/platforms.php index 7efa8367b5..6649723a0c 100644 --- a/app/config/platforms.php +++ b/app/config/platforms.php @@ -63,7 +63,7 @@ return [ [ 'key' => 'flutter', 'name' => 'Flutter', - 'version' => '4.0.0', + 'version' => '4.0.1', 'url' => 'https://github.com/appwrite/sdk-for-flutter', 'package' => 'https://pub.dev/packages/appwrite', 'enabled' => true, @@ -352,7 +352,7 @@ return [ [ 'key' => 'dart', 'name' => 'Dart', - 'version' => '4.0.0', + 'version' => '4.0.1', 'url' => 'https://github.com/appwrite/sdk-for-dart', 'package' => 'https://pub.dev/packages/dart_appwrite', 'enabled' => true, diff --git a/docs/examples/0.13.x/client-flutter/examples/storage/create-file.md b/docs/examples/0.13.x/client-flutter/examples/storage/create-file.md index 16732b8d2e..5c591ff223 100644 --- a/docs/examples/0.13.x/client-flutter/examples/storage/create-file.md +++ b/docs/examples/0.13.x/client-flutter/examples/storage/create-file.md @@ -12,7 +12,7 @@ void main() { // Init SDK Future result = storage.createFile( bucketId: '[BUCKET_ID]', fileId: '[FILE_ID]', - file: await MultipartFile.fromPath('file', './path-to-files/image.jpg', 'image.jpg'), + file: InputFile(path: './path-to-files/image.jpg', filename: 'image.jpg'), ); result diff --git a/docs/examples/0.13.x/server-dart/examples/functions/create-deployment.md b/docs/examples/0.13.x/server-dart/examples/functions/create-deployment.md index 2df3b45e7f..a407622ffc 100644 --- a/docs/examples/0.13.x/server-dart/examples/functions/create-deployment.md +++ b/docs/examples/0.13.x/server-dart/examples/functions/create-deployment.md @@ -13,7 +13,7 @@ void main() { // Init SDK Future result = functions.createDeployment( functionId: '[FUNCTION_ID]', entrypoint: '[ENTRYPOINT]', - code: await MultipartFile.fromPath('code', './path-to-files/image.jpg', 'image.jpg'), + code: InputFile(path: './path-to-files/image.jpg', filename: 'image.jpg'), activate: false, ); diff --git a/docs/examples/0.13.x/server-dart/examples/storage/create-file.md b/docs/examples/0.13.x/server-dart/examples/storage/create-file.md index 04b7f63ac0..ef596fcc49 100644 --- a/docs/examples/0.13.x/server-dart/examples/storage/create-file.md +++ b/docs/examples/0.13.x/server-dart/examples/storage/create-file.md @@ -14,7 +14,7 @@ void main() { // Init SDK Future result = storage.createFile( bucketId: '[BUCKET_ID]', fileId: '[FILE_ID]', - file: await MultipartFile.fromPath('file', './path-to-files/image.jpg', 'image.jpg'), + file: InputFile(path: './path-to-files/image.jpg', filename: 'image.jpg'), ); result diff --git a/docs/sdks/dart/CHANGELOG.md b/docs/sdks/dart/CHANGELOG.md index 577116a5bc..65793a8f44 100644 --- a/docs/sdks/dart/CHANGELOG.md +++ b/docs/sdks/dart/CHANGELOG.md @@ -1,3 +1,7 @@ +## 4.0.1 +* Fix InputFile filename param +* Fix examples + ## 4.0.0 * Support for Appwrite 0.13 * **BREAKING** **Tags** have been renamed to **Deployments** diff --git a/docs/sdks/flutter/CHANGELOG.md b/docs/sdks/flutter/CHANGELOG.md index e06f6421ee..1fba948022 100644 --- a/docs/sdks/flutter/CHANGELOG.md +++ b/docs/sdks/flutter/CHANGELOG.md @@ -1,3 +1,7 @@ +## 4.0.1 +* Fix InputFile filename param +* Fix examples + ## 4.0.0 * Support for Appwrite 0.13 * **BREAKING** **Tags** have been renamed to **Deployments**