diff --git a/lib/view/about_us_screen.dart b/lib/view/about_us_screen.dart index b2711f065..1bb6b58a8 100644 --- a/lib/view/about_us_screen.dart +++ b/lib/view/about_us_screen.dart @@ -36,7 +36,7 @@ Widget buildContactList(List> items) { if (await canLaunchUrl(uri)) { await launchUrl(uri); } else { - debugPrint('Could not launch ${item['url']}'); + logger.e('Could not launch URL: ${item['url']}'); } }, ); @@ -135,7 +135,14 @@ class _AboutUsScreenState extends State { style: const TextStyle(fontSize: 15), ), onTap: () async { - await launchUrl(Uri.parse(appLocalizations.feedbackForm)); + final uri = Uri.parse(appLocalizations.feedbackForm); + if (await canLaunchUrl(uri)) { + await launchUrl(uri); + } else { + logger.e( + 'Could not launch feedback form URL: ${appLocalizations.feedbackForm}', + ); + } }, ), const Divider(thickness: 0.5), @@ -162,7 +169,8 @@ class _AboutUsScreenState extends State { ); } else if (snapshot.hasError) { logger.e( - "Error getting version information: ${snapshot.error.toString()}"); + "Error getting version information: ${snapshot.error.toString()}", + ); return Text( appLocalizations.error, style: const TextStyle(fontSize: 15),