revert: 评论详情优先展示二级评论

This commit is contained in:
guozhigq
2024-04-28 07:39:55 +08:00
parent 72ee515ae5
commit 1b8b3947be
6 changed files with 11 additions and 32 deletions

View File

@ -112,7 +112,7 @@ class _VideoReplyPanelState extends State<VideoReplyPanel>
}
// 展示二级回复
void replyReply(replyItem, currentReply) {
void replyReply(replyItem) {
final VideoDetailController videoDetailCtr =
Get.find<VideoDetailController>(tag: heroTag);
if (replyItem != null) {
@ -232,8 +232,8 @@ class _VideoReplyPanelState extends State<VideoReplyPanel>
.replyList[index],
showReplyRow: true,
replyLevel: replyLevel,
replyReply: (replyItem, currentReply) =>
replyReply(replyItem, currentReply),
replyReply: (replyItem) =>
replyReply(replyItem),
replyType: ReplyType.video,
);
}

View File

@ -533,10 +533,8 @@ InlineSpan buildContent(
TextSpan(
text: str,
recognizer: TapGestureRecognizer()
..onTap = () => replyReply?.call(
replyItem.root == 0 ? replyItem : fReplyItem,
replyItem,
),
..onTap = () =>
replyReply?.call(replyItem.root == 0 ? replyItem : fReplyItem),
),
);
}