2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-13 10:45:29 +00:00

Refactor loading overlay

This commit is contained in:
Oliver Walters
2024-12-11 21:45:43 +11:00
parent d5a9f4310e
commit e44d1ea5b4
22 changed files with 44 additions and 31 deletions

View File

@ -79,7 +79,7 @@ class _AttachmentWidgetState extends RefreshableState<AttachmentWidget> {
if (file == null) return;
showLoadingOverlay(context);
showLoadingOverlay();
final bool result = await widget.attachmentClass.uploadAttachment(
file,
@ -178,7 +178,7 @@ class _AttachmentWidgetState extends RefreshableState<AttachmentWidget> {
subtitle: Text(attachment.comment),
leading: Icon(attachment.icon, color: COLOR_ACTION),
onTap: () async {
showLoadingOverlay(context);
showLoadingOverlay();
await attachment.downloadAttachment();
hideLoadingOverlay();
},