Add try/catch block in case launch url throws a platform exception

wow-support
OmarHatem 1 year ago
parent f49695f417
commit f470723ece

@ -30,6 +30,8 @@ class SettingsLinkProviderCell extends StandardListRow {
color: Palette.blueCraiola));
static void _launchUrl(String url) async {
await launch(url, forceSafariVC: false);
try {
await launch(url, forceSafariVC: false);
} catch (e) {}
}
}

@ -18,7 +18,9 @@ abstract class SupportViewModelBase with Store {
RegularListItem(
title: S.current.faq,
handler: (BuildContext context) async {
await launch(url);
try {
await launch(url);
} catch (e) {}
},
),
LinkListItem(

Loading…
Cancel
Save