Improve attachments queue performance

This commit is contained in:
2024-08-01 23:10:19 +08:00
parent 27c60fc8cb
commit b2a6ca7244
3 changed files with 69 additions and 43 deletions

View File

@ -115,10 +115,10 @@ class PostEditorController extends GetxController {
builder: (context) => AttachmentEditorPopup(
usage: 'i.attachment',
initialAttachments: attachments,
onAdd: (value) {
onAdd: (int value) {
attachments.add(value);
},
onRemove: (value) {
onRemove: (int value) {
attachments.remove(value);
},
),