fix(ui): Push chat title and body closer together
This commit is contained in:
parent
e1dd958959
commit
ba45728b57
@ -393,6 +393,8 @@ class ConversationCard extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
|
child: Padding(
|
||||||
|
padding: const EdgeInsets.symmetric(vertical: 8),
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
@ -403,19 +405,17 @@ class ConversationCard extends StatelessWidget {
|
|||||||
children: [
|
children: [
|
||||||
if (conversation.favourite)
|
if (conversation.favourite)
|
||||||
const _RowIcon(Icons.star_outline),
|
const _RowIcon(Icons.star_outline),
|
||||||
|
|
||||||
if (conversation.isGroupchat)
|
if (conversation.isGroupchat)
|
||||||
const _RowIcon(Icons.public),
|
const _RowIcon(Icons.public),
|
||||||
|
|
||||||
if (conversation.muted)
|
if (conversation.muted)
|
||||||
const _RowIcon(Icons.notifications_off),
|
const _RowIcon(Icons.notifications_off),
|
||||||
|
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
HighlightWord(
|
HighlightWord(
|
||||||
text: conversation.titleWithOptionalContact,
|
text:
|
||||||
|
conversation.titleWithOptionalContact,
|
||||||
word: highlightWord,
|
word: highlightWord,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: ptToFontSize(32),
|
fontSize: ptToFontSize(32),
|
||||||
@ -457,7 +457,6 @@ class ConversationCard extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
if (showTimestamp)
|
if (showTimestamp)
|
||||||
Text(
|
Text(
|
||||||
formatConversationTimestamp(
|
formatConversationTimestamp(
|
||||||
@ -480,6 +479,7 @@ class ConversationCard extends StatelessWidget {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user