mirror of
https://github.com/chaos-zhu/easynode.git
synced 2026-10-07 14:58:08 +08:00
feat: 移除list的服务器状态展示
This commit is contained in:
@@ -284,18 +284,11 @@ class _ServerCard extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final manager = state.widget.terminalSessionManager;
|
||||
final active = manager.firstForHost(server.id) != null;
|
||||
final connecting = state._connectingIds.contains(server.id);
|
||||
return Card(
|
||||
key: Key('server-${server.id}'),
|
||||
margin: const EdgeInsets.symmetric(vertical: 6),
|
||||
child: ListTile(
|
||||
leading: Icon(
|
||||
Icons.circle,
|
||||
size: 10,
|
||||
color: active ? Colors.green : Theme.of(context).colorScheme.outline,
|
||||
),
|
||||
title: Text(server.displayName, overflow: TextOverflow.ellipsis),
|
||||
subtitle: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
|
||||
Reference in New Issue
Block a user