FEAT:Support call system terminal(Macos&Linux)

This commit is contained in:
calvin
2023-08-05 14:12:08 +08:00
parent 486b920d6b
commit 73611dacf1
2 changed files with 32 additions and 3 deletions

View File

@@ -224,6 +224,7 @@ class _ServerPageState extends State<ServerPage>
_buildTopRightText(ss, cs),
width7,
_buildSSHBtn(spi),
// SizedBox(width: 5,),
_buildMoreBtn(spi),
],
)
@@ -268,12 +269,12 @@ class _ServerPageState extends State<ServerPage>
}
Widget _buildSSHBtn(ServerPrivateInfo spi) {
return GestureDetector(
child: const Icon(
return IconButton(
icon: const Icon(
Icons.terminal,
size: 21,
),
onTap: () => AppRoute(SSHPage(spi: spi), 'ssh page').go(context),
onPressed: () => startSSH(spi, context),
);
}