mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 19:46:25 +00:00
Download attachments and open
- Uses package "open_file"
This commit is contained in:
parent
4243876111
commit
e31158a966
8 changed files with 113 additions and 6 deletions
|
|
@ -510,8 +510,6 @@ class _PaginatedPartListState extends State<PaginatedPartList> {
|
|||
|
||||
void updateSearchTerm() {
|
||||
|
||||
print("Search Term: '${_searchTerm}'");
|
||||
|
||||
_searchTerm = searchController.text;
|
||||
_pagingController.refresh();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -161,6 +161,9 @@ class _PartAttachmentDisplayState extends RefreshableState<PartAttachmentsWidget
|
|||
title: Text(attachment.filename),
|
||||
subtitle: Text(attachment.comment),
|
||||
leading: FaIcon(attachment.icon),
|
||||
onTap: () async {
|
||||
await attachment.downloadAttachment();
|
||||
},
|
||||
));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue