From 1426f5f072c40b1029a05694e164e4e70df7c0c1 Mon Sep 17 00:00:00 2001 From: orz12 Date: Sat, 20 Jul 2024 19:28:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B6=88=E6=81=AF=E9=A1=B5=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E5=A4=B4=E5=83=8F=E7=9A=84=E5=AE=B9=E9=94=99=EF=BC=88?= =?UTF-8?q?=E4=BE=8B=E5=A6=82=E4=BC=9A=E5=91=98=E8=B4=AD=E7=9A=84=E6=94=AF?= =?UTF-8?q?=E4=BB=98=E5=B0=8F=E5=8A=A9=E6=89=8B=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/whisper/view.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/pages/whisper/view.dart b/lib/pages/whisper/view.dart index 1ab1cff0..abcde483 100644 --- a/lib/pages/whisper/view.dart +++ b/lib/pages/whisper/view.dart @@ -201,11 +201,11 @@ class _WhisperPageState extends State { width: 45, height: 45, type: 'avatar', - src: sessionList[i].accountInfo.face, + src: sessionList[i].accountInfo?.face, ), ), - title: - Text(sessionList[i].accountInfo.name), + title: Text( + sessionList[i].accountInfo?.name ?? ""), subtitle: Text(content, maxLines: 1, overflow: TextOverflow.ellipsis,