On the welcome screen there was a link which takes the users to the play store to download the Opaque app. However for iOS the link needs to be different. Update the links to fix the issue.
Also we do support VNC through noVNC so updated the text as well. Signed-off-by: Shan Shaji <[email protected]> --- lib/utils/links.dart | 3 +++ lib/widgets/firstWelcomeScreen/pve_welcome_faq.dart | 11 ++++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/lib/utils/links.dart b/lib/utils/links.dart index 3c1797e..22bc598 100644 --- a/lib/utils/links.dart +++ b/lib/utils/links.dart @@ -20,4 +20,7 @@ class Links { 'https://pve.proxmox.com/wiki/Proxmox_VE_Mobile_Companion_Data_Protection'); static final bugzillaUri = Uri.parse('https://bugzilla.proxmox.com/enter_bug.cgi?product=pve'); + static final aSpiceClient = Uri.parse( + "https://apps.apple.com/app/id1560593107", + ); } diff --git a/lib/widgets/firstWelcomeScreen/pve_welcome_faq.dart b/lib/widgets/firstWelcomeScreen/pve_welcome_faq.dart index d1eb9d0..b34c4f5 100644 --- a/lib/widgets/firstWelcomeScreen/pve_welcome_faq.dart +++ b/lib/widgets/firstWelcomeScreen/pve_welcome_faq.dart @@ -1,3 +1,5 @@ +import 'dart:io'; + import 'package:flutter/material.dart'; import 'package:url_launcher/url_launcher.dart'; import 'package:pve_flutter_frontend/widgets/firstWelcomeScreen/pve_welcome_common.dart'; @@ -37,19 +39,22 @@ class PveWelcomePageFAQ extends StatelessWidget { ), const PveAnswer( text: - "Spice is currently supported. We plan to integrate VNC in the future."), + "Spice is currently supported, and we also support VNC through noVNC." ), const PveQuestion(text: "Which Spice client works?"), const PveAnswer( text: 'Currently only the following 3rd party Spice client works:'), Center( child: OutlinedButton( - onPressed: () => {launchUrl(Links.opaqueApp)}, + onPressed: () { + final link = Platform.isIOS ? Links.aSpiceClient : Links.opaqueApp; + launchUrl(link); + }, style: OutlinedButton.styleFrom( side: const BorderSide(color: ProxmoxColors.supportGrey), foregroundColor: Colors.white, ), - child: const Text('Opaque'), + child: Text(Platform.isIOS ? "aSPICE Pro" : "Opaque"), ), ), ], -- 2.50.1 _______________________________________________ pve-devel mailing list [email protected] https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
