fix: 二级评论点击报错、一些样式修改

This commit is contained in:
guozhigq
2023-07-27 21:31:28 +08:00
parent ca12be5373
commit f6c8c4f6a8
7 changed files with 30 additions and 25 deletions

View File

@ -100,10 +100,12 @@ class _VideoReplyPanelState extends State<VideoReplyPanel>
void replyReply(replyItem) {
VideoDetailController videoDetailCtr =
Get.find<VideoDetailController>(tag: Get.arguments['heroTag']);
videoDetailCtr.oid = replyItem.oid;
videoDetailCtr.fRpid = replyItem.rpid!;
videoDetailCtr.firstFloor = replyItem;
videoDetailCtr.showReplyReplyPanel();
if (replyItem != null) {
videoDetailCtr.oid = replyItem.oid;
videoDetailCtr.fRpid = replyItem.rpid!;
videoDetailCtr.firstFloor = replyItem;
videoDetailCtr.showReplyReplyPanel();
}
}
@override

View File

@ -34,7 +34,12 @@ class ReplyItem extends StatelessWidget {
return Material(
child: InkWell(
// 点击整个评论区 评论详情/回复
onTap: () => replyReply!(replyItem),
onTap: () {
feedBack();
if (replyReply != null) {
replyReply!(replyItem);
}
},
child: Padding(
padding: const EdgeInsets.fromLTRB(12, 4, 8, 2),
child: content(context),