mod: 回复内容回填

This commit is contained in:
guozhigq
2023-05-27 16:14:42 +08:00
parent 0d49f9824c
commit aba707e627
5 changed files with 59 additions and 33 deletions

View File

@ -163,12 +163,7 @@ class _VideoReplyPanelState extends State<VideoReplyPanel>
return ReplyItem(
replyItem: _videoReplyController
.replyList[index],
weakUpReply: (replyItem, replyLevel) =>
_showReply(
'floor',
replyItem: replyItem,
replyLevel: replyLevel,
),
showReplyRow: true,
replyLevel: replyLevel);
}
},
@ -223,7 +218,11 @@ class _VideoReplyPanelState extends State<VideoReplyPanel>
parent: 0,
);
},
).then((value) => {print('close ModalBottomSheet')});
).then((value) => {
// 完成评论,数据添加
_videoReplyController
.replyList.add(value['data'])
});
},
tooltip: '发表评论',
child: const Icon(Icons.reply),