mobile id text format

This commit is contained in:
csf
2022-09-21 17:54:47 +08:00
parent 285d415a5a
commit 725c0689e2
3 changed files with 15 additions and 13 deletions

View File

@@ -77,7 +77,7 @@ class _PeerCardState extends State<_PeerCard>
child: ListTile(
contentPadding: const EdgeInsets.only(left: 12),
subtitle: Text('${peer.username}@${peer.hostname}'),
title: Text(peer.id),
title: Text(formatID(peer.id)),
leading: Container(
padding: const EdgeInsets.all(6),
color: str2color('${peer.id}${peer.platform}', 0x7f),