[pve-devel] [PATCH pve_flutter_frontend 2/3] ui: settings: add privacy policy url link in settings screen
Shan Shaji
s.shaji at proxmox.com
Fri Aug 29 13:48:44 CEST 2025
According to Apple's App Store review guidelines all apps must include a
link to their privacy policy within the App [0]. To fix the issue add a
new list item in the settings screen that will allow users to access the
privacy policy.
[0] - https://developer.apple.com/app-store/review/guidelines/#legal
Signed-off-by: Shan Shaji <s.shaji at proxmox.com>
---
lib/pages/pve_settings_page.dart | 27 +++++++++++++++++++++++++++
lib/utils/links.dart | 2 ++
2 files changed, 29 insertions(+)
diff --git a/lib/pages/pve_settings_page.dart b/lib/pages/pve_settings_page.dart
index 0d405c1..1f57f1c 100644
--- a/lib/pages/pve_settings_page.dart
+++ b/lib/pages/pve_settings_page.dart
@@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:proxmox_login_manager/proxmox_general_settings_form.dart';
+import 'package:pve_flutter_frontend/utils/links.dart';
import 'package:pve_flutter_frontend/widgets/pve_app_bar.dart';
class PveSettingsPage extends StatelessWidget {
@@ -15,6 +16,32 @@ class PveSettingsPage extends StatelessWidget {
child: Column(
children: [
ProxmoxGeneralSettingsForm(),
+ const ListTile(
+ title: Text(
+ 'LEGAL',
+ style: TextStyle(
+ fontWeight: FontWeight.bold,
+ ),
+ ),
+ ),
+ ListTile(
+ leading: const Icon(Icons.privacy_tip_outlined),
+ title: const Text('Privacy Policy'),
+ trailing: const Icon(Icons.open_in_new),
+ onTap: () {
+ try {
+ tryLaunchUrl(Links.privacyPolicyUrl);
+ } catch (_) {
+ ScaffoldMessenger.of(context).showSnackBar(
+ const SnackBar(
+ content: Text(
+ 'Could not launch privacy policy',
+ ),
+ ),
+ );
+ }
+ },
+ ),
],
),
),
diff --git a/lib/utils/links.dart b/lib/utils/links.dart
index 29b0501..bab1b80 100644
--- a/lib/utils/links.dart
+++ b/lib/utils/links.dart
@@ -16,4 +16,6 @@ class Links {
Uri.parse('https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-user');
static final opaqueApp = Uri.parse(
'https://play.google.com/store/apps/details?id=com.undatech.opaque');
+ static final privacyPolicyUrl = Uri.parse(
+ 'https://pve.proxmox.com/wiki/Proxmox_VE_Mobile_Companion_Data_Protection');
}
--
2.47.2
More information about the pve-devel
mailing list