Merge pull request #2897 from appwrite/fix-flutter-dart
dart flutter fix
This commit is contained in:
commit
388552a080
|
@ -63,7 +63,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'flutter',
|
'key' => 'flutter',
|
||||||
'name' => 'Flutter',
|
'name' => 'Flutter',
|
||||||
'version' => '4.0.0',
|
'version' => '4.0.1',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-flutter',
|
'url' => 'https://github.com/appwrite/sdk-for-flutter',
|
||||||
'package' => 'https://pub.dev/packages/appwrite',
|
'package' => 'https://pub.dev/packages/appwrite',
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
|
@ -352,7 +352,7 @@ return [
|
||||||
[
|
[
|
||||||
'key' => 'dart',
|
'key' => 'dart',
|
||||||
'name' => 'Dart',
|
'name' => 'Dart',
|
||||||
'version' => '4.0.0',
|
'version' => '4.0.1',
|
||||||
'url' => 'https://github.com/appwrite/sdk-for-dart',
|
'url' => 'https://github.com/appwrite/sdk-for-dart',
|
||||||
'package' => 'https://pub.dev/packages/dart_appwrite',
|
'package' => 'https://pub.dev/packages/dart_appwrite',
|
||||||
'enabled' => true,
|
'enabled' => true,
|
||||||
|
|
|
@ -12,7 +12,7 @@ void main() { // Init SDK
|
||||||
Future result = storage.createFile(
|
Future result = storage.createFile(
|
||||||
bucketId: '[BUCKET_ID]',
|
bucketId: '[BUCKET_ID]',
|
||||||
fileId: '[FILE_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
|
result
|
||||||
|
|
|
@ -13,7 +13,7 @@ void main() { // Init SDK
|
||||||
Future result = functions.createDeployment(
|
Future result = functions.createDeployment(
|
||||||
functionId: '[FUNCTION_ID]',
|
functionId: '[FUNCTION_ID]',
|
||||||
entrypoint: '[ENTRYPOINT]',
|
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,
|
activate: false,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ void main() { // Init SDK
|
||||||
Future result = storage.createFile(
|
Future result = storage.createFile(
|
||||||
bucketId: '[BUCKET_ID]',
|
bucketId: '[BUCKET_ID]',
|
||||||
fileId: '[FILE_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
|
result
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
## 4.0.1
|
||||||
|
* Fix InputFile filename param
|
||||||
|
* Fix examples
|
||||||
|
|
||||||
## 4.0.0
|
## 4.0.0
|
||||||
* Support for Appwrite 0.13
|
* Support for Appwrite 0.13
|
||||||
* **BREAKING** **Tags** have been renamed to **Deployments**
|
* **BREAKING** **Tags** have been renamed to **Deployments**
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
## 4.0.1
|
||||||
|
* Fix InputFile filename param
|
||||||
|
* Fix examples
|
||||||
|
|
||||||
## 4.0.0
|
## 4.0.0
|
||||||
* Support for Appwrite 0.13
|
* Support for Appwrite 0.13
|
||||||
* **BREAKING** **Tags** have been renamed to **Deployments**
|
* **BREAKING** **Tags** have been renamed to **Deployments**
|
||||||
|
|
Loading…
Reference in a new issue