|
|
@ -139,14 +139,12 @@ class ChatListItem extends StatelessWidget {
|
|
|
|
leading: Avatar(room.avatar, room.displayname),
|
|
|
|
leading: Avatar(room.avatar, room.displayname),
|
|
|
|
title: Row(
|
|
|
|
title: Row(
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
Expanded(
|
|
|
|
Text(
|
|
|
|
child: Text(
|
|
|
|
room.getLocalizedDisplayname(context),
|
|
|
|
room.getLocalizedDisplayname(context),
|
|
|
|
maxLines: 1,
|
|
|
|
maxLines: 1,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(width: 16),
|
|
|
|
SizedBox(width: 4),
|
|
|
|
room.pushRuleState == PushRuleState.notify
|
|
|
|
room.pushRuleState == PushRuleState.notify
|
|
|
|
? Container()
|
|
|
|
? Container()
|
|
|
|
: Icon(
|
|
|
|
: Icon(
|
|
|
@ -154,7 +152,7 @@ class ChatListItem extends StatelessWidget {
|
|
|
|
color: Colors.grey[400],
|
|
|
|
color: Colors.grey[400],
|
|
|
|
size: 16,
|
|
|
|
size: 16,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(width: 4),
|
|
|
|
Spacer(),
|
|
|
|
Text(
|
|
|
|
Text(
|
|
|
|
room.timeCreated.localizedTimeShort(context),
|
|
|
|
room.timeCreated.localizedTimeShort(context),
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|