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; double maxHeight = 0;
for (var peer in options) { for (var peer in options) {
if (maxHeight < 200) if (maxHeight < 200)
maxHeight += 47; maxHeight += 52;
} }
return Align( return Align(
alignment: Alignment.topLeft, alignment: Alignment.topLeft,
@ -320,10 +320,13 @@ class _ConnectionPageState extends State<ConnectionPage>
maxHeight: maxHeight, maxHeight: maxHeight,
maxWidth: 320, maxWidth: 320,
), ),
child: ListView( child: Padding(
children: options padding: const EdgeInsets.only(top: 5),
.map((peer) => _buildPeerTile(context, peer)) child: ListView(
.toList() children: options
.map((peer) => _buildPeerTile(context, peer))
.toList()
),
), ),
), ),
), ),