new: add PrivacyInfo for ios/macos

This commit is contained in:
lollipopkit
2024-03-22 23:15:04 +08:00
parent 2681e4eb28
commit 6ed2e558cb
5 changed files with 52 additions and 2 deletions

View File

@@ -703,11 +703,12 @@ class _ServerDetailPageState extends State<ServerDetailPage>
}
Widget _buildPve(_) {
if (widget.spi.custom?.pveAddr == null) return UIs.placeholder;
final addr = widget.spi.custom?.pveAddr;
if (addr == null) return UIs.placeholder;
return CardX(
child: ListTile(
title: const Text('PVE'),
subtitle: Text(widget.spi.custom!.pveAddr!),
subtitle: Text(addr, style: UIs.textGrey),
leading: const Icon(FontAwesome.server_solid, size: 17),
trailing: const Icon(Icons.chevron_right),
onTap: () => AppRoute.pve(spi: widget.spi).go(context),