fix renderflex overflow issue

This commit is contained in:
Henry Hiles 2026-03-13 14:41:58 -04:00
commit 983f6d6c18
No known key found for this signature in database

View file

@ -20,19 +20,21 @@ class MessageWrapper extends StatelessWidget {
message.metadata?["displayName"] ?? "",
)
: SizedBox(width: 40),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
if (groupStatus?.isFirst != false)
Text(
message.metadata?["displayName"] ?? message.authorId,
overflow: TextOverflow.ellipsis,
style: Theme.of(
context,
).textTheme.titleMedium?.copyWith(fontWeight: FontWeight.bold),
),
child,
],
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
if (groupStatus?.isFirst != false)
Text(
message.metadata?["displayName"] ?? message.authorId,
overflow: TextOverflow.ellipsis,
style: Theme.of(
context,
).textTheme.titleMedium?.copyWith(fontWeight: FontWeight.bold),
),
child,
],
),
),
],
);