revert: 评论详情优先展示二级评论
This commit is contained in:
@ -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,
|
||||
);
|
||||
}
|
||||
|
@ -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),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user