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"] ?? "", message.metadata?["displayName"] ?? "",
) )
: SizedBox(width: 40), : SizedBox(width: 40),
Column( Expanded(
crossAxisAlignment: CrossAxisAlignment.start, child: Column(
children: [ crossAxisAlignment: CrossAxisAlignment.start,
if (groupStatus?.isFirst != false) children: [
Text( if (groupStatus?.isFirst != false)
message.metadata?["displayName"] ?? message.authorId, Text(
overflow: TextOverflow.ellipsis, message.metadata?["displayName"] ?? message.authorId,
style: Theme.of( overflow: TextOverflow.ellipsis,
context, style: Theme.of(
).textTheme.titleMedium?.copyWith(fontWeight: FontWeight.bold), context,
), ).textTheme.titleMedium?.copyWith(fontWeight: FontWeight.bold),
child, ),
], child,
],
),
), ),
], ],
); );