💄 Fix post replies skeleton inconststent
This commit is contained in:
@@ -48,12 +48,24 @@ class PostRepliesList extends HookConsumerWidget {
|
|||||||
Widget build(BuildContext context, WidgetRef ref) {
|
Widget build(BuildContext context, WidgetRef ref) {
|
||||||
final provider = postRepliesProvider(postId);
|
final provider = postRepliesProvider(postId);
|
||||||
|
|
||||||
|
final skeletonItem = Padding(
|
||||||
|
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
|
||||||
|
child: const PostItemSkeleton(),
|
||||||
|
);
|
||||||
|
|
||||||
return PaginationList(
|
return PaginationList(
|
||||||
provider: provider,
|
provider: provider,
|
||||||
notifier: provider.notifier,
|
notifier: provider.notifier,
|
||||||
isRefreshable: false,
|
isRefreshable: false,
|
||||||
isSliver: true,
|
isSliver: true,
|
||||||
footerSkeletonChild: const PostItemSkeleton(),
|
footerSkeletonChild: maxWidth == null
|
||||||
|
? skeletonItem
|
||||||
|
: Center(
|
||||||
|
child: ConstrainedBox(
|
||||||
|
constraints: BoxConstraints(maxWidth: maxWidth!),
|
||||||
|
child: skeletonItem,
|
||||||
|
),
|
||||||
|
),
|
||||||
itemBuilder: (context, index, item) {
|
itemBuilder: (context, index, item) {
|
||||||
final contentWidget = Card(
|
final contentWidget = Card(
|
||||||
margin: EdgeInsets.symmetric(horizontal: 8, vertical: 4),
|
margin: EdgeInsets.symmetric(horizontal: 8, vertical: 4),
|
||||||
|
|||||||
Reference in New Issue
Block a user