fix showLoading dark theme & add doubleTap to connect

This commit is contained in:
csf 2022-08-15 16:51:33 +08:00
parent 22d346831e
commit 3e702c834a
2 changed files with 3 additions and 2 deletions

View File

@ -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,

View File

@ -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)),
));
}