♻️ Rebuilt the context menu

This commit is contained in:
2025-04-26 18:35:17 +08:00
parent a7d4975e18
commit 1d52b8b5ed
6 changed files with 164 additions and 59 deletions

View File

@ -48,7 +48,12 @@ class ExploreScreen extends ConsumerWidget {
onFetchData: controller.fetchMore,
itemBuilder: (context, index) {
final post = controller.posts[index];
return PostItem(item: post);
return PostItem(
item: post,
onRefresh: (_) {
ref.invalidate(postListProvider);
},
);
},
separatorBuilder: (_, __) => const Divider(height: 1),
),