From 417bc2ce9b870a087c7f49ac111b2a2ed57348c6 Mon Sep 17 00:00:00 2001 From: orz12 Date: Mon, 26 Feb 2024 08:18:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=AF=84=E8=AE=BA=E5=8C=BA=E6=B2=A1?= =?UTF-8?q?=E6=9C=89addReply=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/video/detail/reply/widgets/reply_item.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/pages/video/detail/reply/widgets/reply_item.dart b/lib/pages/video/detail/reply/widgets/reply_item.dart index 9803c900..b8ef2911 100644 --- a/lib/pages/video/detail/reply/widgets/reply_item.dart +++ b/lib/pages/video/detail/reply/widgets/reply_item.dart @@ -278,7 +278,9 @@ class ReplyItem extends StatelessWidget { }, ).then((value) => { // 完成评论,数据添加 - if (value != null && value['data'] != null) + if (value != null && + value['data'] != null && + addReply != null) { addReply!(value['data']) // replyControl.replies.add(value['data']),