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

@ -20,7 +20,7 @@ class MemberArticleController extends GetxController {
} }
Future getMemberArticle(type) async { Future getMemberArticle(type) async {
if (isLoading.value) { if (isLoading.value || !hasMore) {
return; return;
} }
isLoading.value = true; isLoading.value = true;

View File

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