From 4a42e3ef1bbc58b809260d0f18ffdf398f5a90b3 Mon Sep 17 00:00:00 2001 From: Sahil Yeole Date: Mon, 16 Oct 2023 23:06:14 +0530 Subject: [PATCH] add padding autocomplete Signed-off-by: Sahil Yeole --- flutter/lib/desktop/pages/connection_page.dart | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/flutter/lib/desktop/pages/connection_page.dart b/flutter/lib/desktop/pages/connection_page.dart index f4f92b88f..0e43b7ba4 100644 --- a/flutter/lib/desktop/pages/connection_page.dart +++ b/flutter/lib/desktop/pages/connection_page.dart @@ -309,7 +309,7 @@ class _ConnectionPageState extends State double maxHeight = 0; for (var peer in options) { if (maxHeight < 200) - maxHeight += 47; + maxHeight += 52; } return Align( alignment: Alignment.topLeft, @@ -320,10 +320,13 @@ class _ConnectionPageState extends State maxHeight: maxHeight, maxWidth: 320, ), - child: ListView( - children: options - .map((peer) => _buildPeerTile(context, peer)) - .toList() + child: Padding( + padding: const EdgeInsets.only(top: 5), + child: ListView( + children: options + .map((peer) => _buildPeerTile(context, peer)) + .toList() + ), ), ), ),