From f4b0b39beb77b0d07d1114ae06a290438bcfcbd4 Mon Sep 17 00:00:00 2001 From: Sahil Yeole Date: Fri, 20 Oct 2023 02:40:54 +0530 Subject: [PATCH] show id if alias exists Signed-off-by: Sahil Yeole --- flutter/lib/desktop/pages/connection_page.dart | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/flutter/lib/desktop/pages/connection_page.dart b/flutter/lib/desktop/pages/connection_page.dart index 0eca17eac..b6ac07672 100644 --- a/flutter/lib/desktop/pages/connection_page.dart +++ b/flutter/lib/desktop/pages/connection_page.dart @@ -457,6 +457,16 @@ class _ConnectionPageState extends State 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,