fix(ui): Push chat title and body closer together

This commit is contained in:
PapaTutuWawa 2024-04-08 21:55:28 +02:00
parent e1dd958959
commit ba45728b57

View File

@ -393,6 +393,8 @@ class ConversationCard extends StatelessWidget {
),
),
Expanded(
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 8),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.start,
@ -403,19 +405,17 @@ class ConversationCard extends StatelessWidget {
children: [
if (conversation.favourite)
const _RowIcon(Icons.star_outline),
if (conversation.isGroupchat)
const _RowIcon(Icons.public),
if (conversation.muted)
const _RowIcon(Icons.notifications_off),
Expanded(
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
HighlightWord(
text: conversation.titleWithOptionalContact,
text:
conversation.titleWithOptionalContact,
word: highlightWord,
style: TextStyle(
fontSize: ptToFontSize(32),
@ -457,7 +457,6 @@ class ConversationCard extends StatelessWidget {
),
),
),
if (showTimestamp)
Text(
formatConversationTimestamp(
@ -480,6 +479,7 @@ class ConversationCard extends StatelessWidget {
],
),
),
),
],
),
),