diff --git a/app/lib/utils/ui_helper.dart b/app/lib/utils/ui_helper.dart index ee47fbbb..255acfe8 100644 --- a/app/lib/utils/ui_helper.dart +++ b/app/lib/utils/ui_helper.dart @@ -139,7 +139,13 @@ Future launchUrlFeedback( LaunchMode mode = LaunchMode.externalApplication, }) async { if (await canLaunchUrl(url)) { - if (!await launchUrl(url, mode: mode)) { + try { + if (!await launchUrl(url, mode: mode)) { + if (context.mounted) { + showErrorMessage(context, 'Could not launch URL ($url)'); + } + } + } catch (e) { if (context.mounted) { showErrorMessage(context, 'Could not launch URL ($url)'); }