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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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);
});
});
}
)