From 5bf54837c2a30113414741c5ecd79af2cb3d7eb5 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Sat, 3 Apr 2021 12:57:02 +0200 Subject: [PATCH] fix: Overflow in chat app bar --- lib/views/chat.dart | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/lib/views/chat.dart b/lib/views/chat.dart index 02efc111..76dbac8d 100644 --- a/lib/views/chat.dart +++ b/lib/views/chat.dart @@ -582,6 +582,7 @@ class _ChatState extends State { builder: (context, snapshot) => Text( room.getLocalizedStatus(context), maxLines: 1, + //overflow: TextOverflow.ellipsis, )) : Row( children: [ @@ -589,13 +590,14 @@ class _ChatState extends State { color: Theme.of(context).accentColor, size: 13), SizedBox(width: 4), - Text( - room.getLocalizedTypingText(context), - maxLines: 1, - style: TextStyle( - color: Theme.of(context).accentColor, - fontStyle: FontStyle.italic, - fontSize: 16, + Expanded( + child: Text( + room.getLocalizedTypingText(context), + maxLines: 1, + style: TextStyle( + color: Theme.of(context).accentColor, + fontStyle: FontStyle.italic, + ), ), ), ],