mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-25 22:39:22 +00:00
Highlight unread conversations
This commit is contained in:
parent
5c4020d511
commit
0103779608
@ -28,6 +28,7 @@ class MembershipsPanel extends StatefulWidget {
|
|||||||
|
|
||||||
const _MembershipIconsWidth = 30.0;
|
const _MembershipIconsWidth = 30.0;
|
||||||
|
|
||||||
|
/// TODO : add auto-refresh
|
||||||
class _MembershipsPanelState extends SafeState<MembershipsPanel> {
|
class _MembershipsPanelState extends SafeState<MembershipsPanel> {
|
||||||
final _refreshKey = GlobalKey<RefreshIndicatorState>();
|
final _refreshKey = GlobalKey<RefreshIndicatorState>();
|
||||||
MembershipList _membershipList;
|
MembershipList _membershipList;
|
||||||
@ -156,13 +157,17 @@ class _MembershipsPanelState extends SafeState<MembershipsPanel> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// TODO : all calls notices
|
||||||
Widget _buildConversationMembership(Membership membership) {
|
Widget _buildConversationMembership(Membership membership) {
|
||||||
return ListTile(
|
return Container(
|
||||||
dense: true,
|
color: membership.conversation.sawLastMessage ? null : Color(0xFF1c443a),
|
||||||
leading: Icon(Icons.message),
|
child: ListTile(
|
||||||
title: Text(ConversationsHelper.getConversationName(
|
dense: true,
|
||||||
membership.conversation, _usersList)),
|
leading: Icon(Icons.message),
|
||||||
subtitle: Text(diffTimeFromNowToStr(membership.lastActive)),
|
title: Text(ConversationsHelper.getConversationName(
|
||||||
|
membership.conversation, _usersList)),
|
||||||
|
subtitle: Text(diffTimeFromNowToStr(membership.lastActive)),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user