fix: Overflow in chat app bar

This commit is contained in:
Christian Pauly 2021-04-03 12:57:02 +02:00
parent d78bd5f66d
commit 5bf54837c2
1 changed files with 9 additions and 7 deletions

View File

@ -582,6 +582,7 @@ class _ChatState extends State<Chat> {
builder: (context, snapshot) => Text( builder: (context, snapshot) => Text(
room.getLocalizedStatus(context), room.getLocalizedStatus(context),
maxLines: 1, maxLines: 1,
//overflow: TextOverflow.ellipsis,
)) ))
: Row( : Row(
children: <Widget>[ children: <Widget>[
@ -589,13 +590,14 @@ class _ChatState extends State<Chat> {
color: Theme.of(context).accentColor, color: Theme.of(context).accentColor,
size: 13), size: 13),
SizedBox(width: 4), SizedBox(width: 4),
Text( Expanded(
room.getLocalizedTypingText(context), child: Text(
maxLines: 1, room.getLocalizedTypingText(context),
style: TextStyle( maxLines: 1,
color: Theme.of(context).accentColor, style: TextStyle(
fontStyle: FontStyle.italic, color: Theme.of(context).accentColor,
fontSize: 16, fontStyle: FontStyle.italic,
),
), ),
), ),
], ],