add padding autocomplete

Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
This commit is contained in:
Sahil Yeole 2023-10-16 23:06:14 +05:30
parent 2d6322f799
commit 4a42e3ef1b

View File

@ -309,7 +309,7 @@ class _ConnectionPageState extends State<ConnectionPage>
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<ConnectionPage>
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()
),
),
),
),