20 lines
338 B
Markdown
20 lines
338 B
Markdown
|
import 'package:appwrite/appwrite.dart';
|
||
|
|
||
|
// Init SDK
|
||
|
Client client = Client();
|
||
|
Storage storage = Storage(client);
|
||
|
|
||
|
client
|
||
|
.setProject('5df5acd0d48c2') // Your project ID
|
||
|
;
|
||
|
|
||
|
Future result = storage.getFile(
|
||
|
fileId: '[FILE_ID]',
|
||
|
);
|
||
|
|
||
|
result
|
||
|
.then((response) {
|
||
|
print(response);
|
||
|
}).catchError((error) {
|
||
|
print(error);
|
||
|
});
|