This commit is contained in:
open-trade 2020-11-30 21:14:23 +08:00
parent e367a33fc8
commit 0388e51299

View File

@ -212,7 +212,9 @@ class _HomePageState extends State<HomePage> {
final cards = <Widget>[];
var peers = FFI.peers();
peers.forEach((p) {
cards.add(Card(
cards.add(Padding(
padding: EdgeInsets.symmetric(horizontal: 12),
child: Card(
child: GestureDetector(
onTap: () => connect('${p.id}'),
onLongPressStart: (details) {
@ -240,7 +242,7 @@ class _HomePageState extends State<HomePage> {
padding: const EdgeInsets.all(6),
child: getPlatformImage('${p.platform}'),
color: str2color('${p.id}${p.platform}', 0x77)),
))));
)))));
});
return Wrap(children: cards);
}