🐛 Fix explore pagination placeholder maxWidth
This commit is contained in:
@@ -317,7 +317,7 @@ class ExploreScreen extends HookConsumerWidget {
|
|||||||
// Sliver list cannot provide refresh handled by the pagination list
|
// Sliver list cannot provide refresh handled by the pagination list
|
||||||
isRefreshable: false,
|
isRefreshable: false,
|
||||||
isSliver: true,
|
isSliver: true,
|
||||||
footerSkeletonChild: const PostItemSkeleton(),
|
footerSkeletonChild: const PostItemSkeleton(maxWidth: double.infinity),
|
||||||
contentBuilder: (data, footer) =>
|
contentBuilder: (data, footer) =>
|
||||||
_ActivityListView(data: data, isWide: isWide, footer: footer),
|
_ActivityListView(data: data, isWide: isWide, footer: footer),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ class PostItemSkeleton extends StatelessWidget {
|
|||||||
final bool isEmbedReply;
|
final bool isEmbedReply;
|
||||||
final bool isCompact;
|
final bool isCompact;
|
||||||
final double? borderRadius;
|
final double? borderRadius;
|
||||||
|
final double maxWidth;
|
||||||
|
|
||||||
const PostItemSkeleton({
|
const PostItemSkeleton({
|
||||||
super.key,
|
super.key,
|
||||||
@@ -19,6 +20,7 @@ class PostItemSkeleton extends StatelessWidget {
|
|||||||
this.isEmbedReply = false,
|
this.isEmbedReply = false,
|
||||||
this.isCompact = false,
|
this.isCompact = false,
|
||||||
this.borderRadius,
|
this.borderRadius,
|
||||||
|
this.maxWidth = 640,
|
||||||
});
|
});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -28,7 +30,7 @@ class PostItemSkeleton extends StatelessWidget {
|
|||||||
|
|
||||||
return Center(
|
return Center(
|
||||||
child: ConstrainedBox(
|
child: ConstrainedBox(
|
||||||
constraints: BoxConstraints(maxWidth: 640),
|
constraints: BoxConstraints(maxWidth: maxWidth),
|
||||||
child: Card(
|
child: Card(
|
||||||
margin: EdgeInsets.only(bottom: 8),
|
margin: EdgeInsets.only(bottom: 8),
|
||||||
child: Column(
|
child: Column(
|
||||||
|
|||||||
Reference in New Issue
Block a user