💄 New layout for article for optimized reading experience

🐛 Bug fixes on pending post media list
This commit is contained in:
2024-12-07 21:33:01 +08:00
parent b583780cfc
commit 2a837227d5
6 changed files with 186 additions and 30 deletions

View File

@ -264,6 +264,7 @@ class PostWriteController extends ChangeNotifier {
final item = await _uploadAttachment(context, media);
attachments[idx] = PostWriteMedia(item);
isBusy = false;
notifyListeners();
}
@ -395,6 +396,9 @@ class PostWriteController extends ChangeNotifier {
attachments.add(thumbnail!);
thumbnail = null;
} else {
if (thumbnail != null) {
attachments.add(thumbnail!);
}
thumbnail = attachments[idx];
attachments.removeAt(idx);
}