show id if alias exists

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
This commit is contained in:
Sahil Yeole 2023-10-20 02:40:54 +05:30
parent cfc0925e75
commit f4b0b39beb

View File

@ -457,6 +457,16 @@ class _ConnectionPageState extends State<ConnectionPage>
overflow: TextOverflow.ellipsis,
style: Theme.of(context).textTheme.titleSmall,
)),
!peer.alias.isEmpty?
Padding(
padding: const EdgeInsets.only(left: 5, right: 5),
child: Text(
"(${peer.id})",
style: greyStyle,
overflow: TextOverflow.ellipsis,
)
)
: Container(),
]).marginOnly(top: 2),
Align(
alignment: Alignment.centerLeft,