fix:专栏图文渲染异常

This commit is contained in:
guozhigq
2024-10-27 23:46:33 +08:00
parent de2b2907a6
commit 3e630334ca
2 changed files with 9 additions and 7 deletions

View File

@ -113,12 +113,14 @@ class _MemberArticlePageState extends State<MemberArticlePage> {
'articleType': 'opus',
});
},
leading: NetworkImgLayer(
width: 50,
height: 50,
type: 'emote',
src: item?.cover?['url'] ?? '',
),
leading: item?.cover != null
? NetworkImgLayer(
width: 50,
height: 50,
type: 'emote',
src: item?.cover?['url'] ?? '',
)
: const SizedBox(),
title: Text(
item.content,
maxLines: 2,