fix: reply listview rebuild

This commit is contained in:
guozhigq
2023-06-21 22:30:54 +08:00
parent 53d873f89b
commit fbe1dfef18
4 changed files with 94 additions and 99 deletions

View File

@ -108,9 +108,8 @@ class _VideoReplyReplyPanelState extends State<VideoReplyReplyPanel> {
replyLevel: '1',
showReplyRow: false,
addReply: (replyItem) {
_videoReplyReplyController.replyList
.add(replyItem);
}),
_videoReplyReplyController.replyList.add(replyItem);
}),
),
SliverToBoxAdapter(
child: Divider(
@ -160,10 +159,9 @@ class _VideoReplyReplyPanelState extends State<VideoReplyReplyPanel> {
replyLevel: '2',
showReplyRow: false,
addReply: (replyItem) {
_videoReplyReplyController
.replyList
.add(replyItem);
}),
_videoReplyReplyController.replyList
.add(replyItem);
}),
);
}
},