🐛 Fix large screen have no post category filter

This commit is contained in:
2025-08-06 21:42:23 +08:00
parent 3c4a9767e1
commit 950150e119
2 changed files with 15 additions and 4 deletions

View File

@@ -337,7 +337,18 @@ class PublisherProfileScreen extends HookConsumerWidget {
child: CustomScrollView(
slivers: [
SliverGap(16),
SliverPostList(pubName: name),
SliverToBoxAdapter(
child: publisherCategoryTabWidget(),
),
SliverPostList(
key: ValueKey(categoryTab.value),
pubName: name,
type: switch (categoryTab.value) {
1 => 0,
2 => 1,
_ => null,
},
),
SliverGap(
MediaQuery.of(context).padding.bottom + 16,
),
@@ -350,9 +361,9 @@ class PublisherProfileScreen extends HookConsumerWidget {
alignment: Alignment.topLeft,
child: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
publisherBasisWidget(data),
publisherBasisWidget(data).padding(bottom: 8),
publisherBadgesWidget(data),
publisherVerificationWidget(data),
publisherBioWidget(data),

View File

@@ -535,7 +535,7 @@ class PostItem extends HookConsumerWidget {
right: renderingPadding.horizontal,
),
),
if (item.attachments.isNotEmpty)
if (item.attachments.isNotEmpty && item.type != 1)
CloudFileList(
files: item.attachments,
padding: EdgeInsets.symmetric(