Chat attachments

This commit is contained in:
2024-05-26 21:03:25 +08:00
parent 9cb2b9122e
commit c3bf0a19b8
5 changed files with 27 additions and 5 deletions

View File

@ -145,8 +145,6 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
padding: EdgeInsets.only(
top: !isMerged ? 8 : 0,
bottom: !hasMerged ? 8 : 0,
left: 12,
right: 12,
),
child: ChatMessage(
item: item,

View File

@ -45,7 +45,7 @@ class _PostPublishingScreenState extends State<PostPublishingScreen> {
List<int> _attachments = List.empty();
void showAttachments(BuildContext context) {
void showAttachments() {
showModalBottomSheet(
context: context,
builder: (context) => AttachmentPublishingPopup(
@ -258,7 +258,7 @@ class _PostPublishingScreenState extends State<PostPublishingScreen> {
TextButton(
style: TextButton.styleFrom(shape: const CircleBorder()),
child: const Icon(Icons.camera_alt),
onPressed: () => showAttachments(context),
onPressed: () => showAttachments(),
)
],
),

View File

@ -82,6 +82,8 @@ class _SocialScreenState extends State<SocialScreen> {
sliver: SliverAppBar(
title: Text('social'.tr),
centerTitle: false,
floating: true,
snap: true,
titleSpacing:
SolianTheme.isLargeScreen(context) ? null : 24,
forceElevated: innerBoxIsScrolled,