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

Scroll fix (#633)

* Fix scrolling behaviuor

* Debounce paginated search
This commit is contained in:
Oliver
2025-04-15 23:42:48 +10:00
committed by GitHub
parent 72a78291b2
commit 1d5377ea20
4 changed files with 54 additions and 32 deletions

View File

@ -60,7 +60,9 @@ class _AttachmentWidgetState extends RefreshableState<AttachmentWidget> {
prefix: widget.imagePrefix,
);
FilePickerDialog.pickImageFromCamera().then((File? file) {
upload(context, file);
upload(context, file).then((_) {
refresh(context);
});
});
}
),
@ -68,7 +70,9 @@ class _AttachmentWidgetState extends RefreshableState<AttachmentWidget> {
icon: Icon(TablerIcons.file_upload),
onPressed: () async {
FilePickerDialog.pickFileFromDevice().then((File? file) {
upload(context, file);
upload(context, file).then((_) {
refresh(context);
});
});
}
)