From 3e702c834a90164ce85f6e2e82f90af74ffd8c7a Mon Sep 17 00:00:00 2001 From: csf Date: Mon, 15 Aug 2022 16:51:33 +0800 Subject: [PATCH] fix showLoading dark theme & add doubleTap to connect --- flutter/lib/common.dart | 1 - flutter/lib/desktop/widgets/peercard_widget.dart | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/flutter/lib/common.dart b/flutter/lib/common.dart index dd48cefea..fb36d3aae 100644 --- a/flutter/lib/common.dart +++ b/flutter/lib/common.dart @@ -200,7 +200,6 @@ class OverlayDialogManager { VoidCallback? onCancel}) { show((setState, close) => CustomAlertDialog( content: Container( - color: MyTheme.white, constraints: BoxConstraints(maxWidth: 240), child: Column( mainAxisSize: MainAxisSize.min, diff --git a/flutter/lib/desktop/widgets/peercard_widget.dart b/flutter/lib/desktop/widgets/peercard_widget.dart index 85e6e20e6..5a5780431 100644 --- a/flutter/lib/desktop/widgets/peercard_widget.dart +++ b/flutter/lib/desktop/widgets/peercard_widget.dart @@ -53,7 +53,9 @@ class _PeerCardState extends State<_PeerCard> border: Border.all(color: Colors.transparent, width: 1.0), borderRadius: BorderRadius.circular(20)); }, - child: _buildPeerTile(context, peer, deco), + child: GestureDetector( + onDoubleTap: () => _connect(peer.id), + child: _buildPeerTile(context, peer, deco)), )); }