change: Implement contact list instead of status
This commit is contained in:
parent
cb0f2b0631
commit
237240407f
10 changed files with 216 additions and 288 deletions
|
|
@ -37,4 +37,16 @@ extension PresenceExtension on Presence {
|
|||
}
|
||||
return presence.presence.getLocalized(context);
|
||||
}
|
||||
|
||||
Color get color {
|
||||
switch (presence?.presence ?? PresenceType.offline) {
|
||||
case PresenceType.online:
|
||||
return Colors.green;
|
||||
case PresenceType.offline:
|
||||
return Colors.red;
|
||||
case PresenceType.unavailable:
|
||||
default:
|
||||
return Colors.grey;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue