Skip to content

Commit 30dbcc5

Browse files
committed
msglist: Adjust layout and spacing in messages
Update per Figma design. Messages have 4px vertical padding and 16px horizontal padding, and if the sender is present it adds 2px to the top padding and 4px spacing between the sender and the message contents.
1 parent 53edaad commit 30dbcc5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/widgets/message_list.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -895,23 +895,23 @@ class MessageWithPossibleSender extends StatelessWidget {
895895
behavior: HitTestBehavior.translucent,
896896
onLongPress: () => showMessageActionSheet(context: context, message: message),
897897
child: Padding(
898-
padding: const EdgeInsets.only(top: 2, bottom: 3, left: 8, right: 8),
898+
padding: const EdgeInsets.symmetric(vertical: 4),
899899
child: Row(crossAxisAlignment: CrossAxisAlignment.start, children: [
900-
const SizedBox(width: 3 + 35 + 11),
900+
const SizedBox(width: 16),
901901
Expanded(
902902
child: Column(
903903
crossAxisAlignment: CrossAxisAlignment.stretch,
904904
children: [
905-
if (item.showSender) ...[
906-
const SizedBox(height: 3),
907-
if (senderRow != null) senderRow,
905+
if (senderRow != null) ...[
906+
const SizedBox(height: 2),
907+
senderRow,
908908
const SizedBox(height: 4),
909909
],
910910
MessageContent(message: message, content: item.content),
911911
if ((message.reactions?.total ?? 0) > 0)
912912
ReactionChipsList(messageId: message.id, reactions: message.reactions!)
913913
])),
914-
const SizedBox(width: 80),
914+
const SizedBox(width: 16),
915915
])));
916916
}
917917
}

0 commit comments

Comments
 (0)