♻️ Post list controller layer

This commit is contained in:
2024-07-25 14:42:50 +08:00
parent fa3ba0e188
commit 7dc198f0a7
5 changed files with 155 additions and 77 deletions

View File

@ -105,7 +105,7 @@ class _PostPublishScreenState extends State<PostPublishScreen> {
void syncWidget() {
if (widget.edit != null) {
_contentController.text = widget.edit!.body['content'];
_attachments = widget.edit!.body['attachments'] ?? List.empty();
_attachments = widget.edit!.body['attachments']?.cast<int>() ?? List.empty();
_isDraft = widget.edit!.isDraft ?? false;
}
}