From 7516e197feb9f150f13b656acaac8c78d461cd57 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 6 Dec 2025 21:15:32 +0800 Subject: [PATCH] :lipstick: Fix post replies skeleton inconststent --- lib/widgets/post/post_replies.dart | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/lib/widgets/post/post_replies.dart b/lib/widgets/post/post_replies.dart index 26e8d258..b272be40 100644 --- a/lib/widgets/post/post_replies.dart +++ b/lib/widgets/post/post_replies.dart @@ -48,12 +48,24 @@ class PostRepliesList extends HookConsumerWidget { Widget build(BuildContext context, WidgetRef ref) { final provider = postRepliesProvider(postId); + final skeletonItem = Padding( + padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4), + child: const PostItemSkeleton(), + ); + return PaginationList( provider: provider, notifier: provider.notifier, isRefreshable: false, isSliver: true, - footerSkeletonChild: const PostItemSkeleton(), + footerSkeletonChild: maxWidth == null + ? skeletonItem + : Center( + child: ConstrainedBox( + constraints: BoxConstraints(maxWidth: maxWidth!), + child: skeletonItem, + ), + ), itemBuilder: (context, index, item) { final contentWidget = Card( margin: EdgeInsets.symmetric(horizontal: 8, vertical: 4),