fix: 调整追剧加号卡片顺序

This commit is contained in:
Zhou Weidong committed 2026-10-22 21:20:06 +08:00
1 parent af828d2c46
commit 091ea358bd
3 files changed
+9 -2

No files matched your search

+2 -2
View File
@@ -269,10 +269,10 @@ class _FavoritesGrid extends StatelessWidget {
itemCount: controller.cards.length + 1,
empty: const SizedBox.shrink(),
itemBuilder: (context, index) {
if (index == 0) {
if (index == controller.cards.length) {
return FollowingAddCard(onTap: onGoHome);
}
final drama = controller.cards[index - 1];
final drama = controller.cards[index];
final episode = drama.episodes.isEmpty
? 1
: drama.episodes.first.number;