2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-16 20:25:26 +00:00

Download attachments and open

- Uses package "open_file"
This commit is contained in:
Oliver
2021-08-15 22:09:11 +10:00
parent 4243876111
commit e31158a966
8 changed files with 113 additions and 6 deletions

View File

@ -526,6 +526,12 @@ class InvenTreeAttachment extends InvenTreeModel {
}
}
Future<void> downloadAttachment() async {
await InvenTreeAPI().downloadFile(attachment);
}
}