Edited the post item styles

This commit is contained in:
2025-07-30 22:16:36 +08:00
parent e4bb031138
commit 7c92dee097
11 changed files with 271 additions and 581 deletions

View File

@@ -470,7 +470,9 @@ class PostComposeScreen extends HookConsumerWidget {
color: colorScheme.primary,
),
IconButton(
onPressed: () => ComposeLogic.addAttachmentById(ref, state, context),
onPressed:
() =>
ComposeLogic.addAttachmentById(ref, state, context),
icon: const Icon(Symbols.attach_file),
color: colorScheme.primary,
),
@@ -655,7 +657,7 @@ class PostComposeScreen extends HookConsumerWidget {
child: SingleChildScrollView(
controller: scrollController,
padding: const EdgeInsets.all(16),
child: PostItem(item: post, isOpenable: false),
child: PostItem(item: post),
),
),
],

View File

@@ -71,7 +71,6 @@ class PostDetailScreen extends HookConsumerWidget {
children: [
PostItem(
item: post!,
isOpenable: false,
isFullPost: true,
backgroundColor: isWide ? Colors.transparent : null,
onUpdate: (newItem) {