♻️ Rebuilt fetching state machine

This commit is contained in:
2026-01-01 11:40:28 +08:00
parent eea56a742e
commit 38dffa414f
34 changed files with 665 additions and 430 deletions

View File

@@ -42,9 +42,9 @@ class PostShuffleScreen extends HookConsumerWidget {
kBottomControlHeight + MediaQuery.of(context).padding.bottom,
),
child: Builder(
key: ValueKey(postListState.value?.length ?? 0),
key: ValueKey(postListState.value?.items.length ?? 0),
builder: (context) {
final items = postListState.value ?? [];
final items = postListState.value?.items ?? [];
if (items.isNotEmpty) {
return CardSwiper(
controller: cardSwiperController,