1
0
Fork 0
mirror of synced 2024-07-03 13:41:01 +12:00

Merge pull request #2897 from appwrite/fix-flutter-dart

dart flutter fix
This commit is contained in:
Eldad A. Fux 2022-03-04 11:55:54 +02:00 committed by GitHub
commit 388552a080
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 13 additions and 5 deletions

View file

@ -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,

View file

@ -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

View file

@ -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,
);

View file

@ -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

View file

@ -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**

View file

@ -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**