This commit is contained in:
guozhigq
2024-09-18 22:17:06 +08:00
parent 8f6fe042cd
commit 476fef8877

View File

@ -366,16 +366,18 @@ class _MinePageState extends State<MinePage>
} else { } else {
// 骨架屏 // 骨架屏
return Obx( return Obx(
() => ListView.builder( () => ctr.favFolderData.value.list != null
scrollDirection: Axis.horizontal, ? ListView.builder(
itemCount: ctr.favFolderData.value.list!.length, scrollDirection: Axis.horizontal,
itemBuilder: (context, index) { itemCount: ctr.favFolderData.value.list!.length,
return FavFolderItem( itemBuilder: (context, index) {
item: ctr.favFolderData.value.list![index], return FavFolderItem(
index: index, item: ctr.favFolderData.value.list![index],
); index: index,
}, );
), },
)
: const SizedBox(),
); );
} }
}, },
@ -391,7 +393,7 @@ class _MinePageState extends State<MinePage>
String title, String title,
) { ) {
return ListTile( return ListTile(
onTap: () {}, onTap: () => Get.toNamed('/fav'),
leading: null, leading: null,
dense: true, dense: true,
title: Padding( title: Padding(