mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 23:34:24 +01:00
Isolate SSHKeyPair process to avoid run stuck
This commit is contained in:
@@ -35,8 +35,8 @@ class _ServerDetailPageState extends State<ServerDetailPage>
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Consumer<ServerProvider>(builder: (_, provider, __) {
|
||||
return _buildMainPage(
|
||||
provider.servers.firstWhere((e) => '${e.info.ip}:${e.info.port}' == widget.id));
|
||||
return _buildMainPage(provider.servers
|
||||
.firstWhere((e) => '${e.info.ip}:${e.info.port}' == widget.id));
|
||||
});
|
||||
}
|
||||
|
||||
@@ -44,16 +44,6 @@ class _ServerDetailPageState extends State<ServerDetailPage>
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Text(si.info.name),
|
||||
actions: [
|
||||
IconButton(
|
||||
onPressed: () => AppRoute(
|
||||
ServerEditPage(
|
||||
spi: si.info,
|
||||
),
|
||||
'Edit server info page')
|
||||
.go(context),
|
||||
icon: const Icon(Icons.edit))
|
||||
],
|
||||
),
|
||||
body: ListView(
|
||||
padding: const EdgeInsets.all(17),
|
||||
|
||||
Reference in New Issue
Block a user