🐛 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( child: CustomScrollView(
slivers: [ slivers: [
SliverGap(16), 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( SliverGap(
MediaQuery.of(context).padding.bottom + 16, MediaQuery.of(context).padding.bottom + 16,
), ),
@@ -350,9 +361,9 @@ class PublisherProfileScreen extends HookConsumerWidget {
alignment: Alignment.topLeft, alignment: Alignment.topLeft,
child: SingleChildScrollView( child: SingleChildScrollView(
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.stretch,
children: [ children: [
publisherBasisWidget(data), publisherBasisWidget(data).padding(bottom: 8),
publisherBadgesWidget(data), publisherBadgesWidget(data),
publisherVerificationWidget(data), publisherVerificationWidget(data),
publisherBioWidget(data), publisherBioWidget(data),

View File

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