fix: Minor design issues

This commit is contained in:
Christian Pauly 2020-11-22 16:50:09 +01:00
parent 7d08817f1c
commit d9590dd4e8

View File

@ -167,8 +167,9 @@ class ChatListItem extends StatelessWidget {
? Padding( ? Padding(
padding: const EdgeInsets.only(left: 4.0), padding: const EdgeInsets.only(left: 4.0),
child: Icon( child: Icon(
Icons.favorite_outline_rounded, Icons.favorite_rounded,
size: 16, size: 16,
color: Theme.of(context).primaryColor,
), ),
) )
: Container(), : Container(),
@ -198,13 +199,21 @@ class ChatListItem extends StatelessWidget {
subtitle: Row( subtitle: Row(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[ children: <Widget>[
if (room.typingUsers.isEmpty && ownMessage) ...{ if (typingText.isEmpty && ownMessage) ...{
Icon( Icon(
room.lastEvent.statusIcon, room.lastEvent.statusIcon,
size: 14, size: 14,
), ),
SizedBox(width: 4), SizedBox(width: 4),
}, },
if (typingText.isNotEmpty) ...{
Icon(
Icons.edit,
color: Theme.of(context).primaryColor,
size: 14,
),
SizedBox(width: 4),
},
Expanded( Expanded(
child: typingText.isNotEmpty child: typingText.isNotEmpty
? Text( ? Text(