|
|
|
|
@ -387,12 +387,15 @@ class _ITGAdsScreenState extends State<ITGAdsScreen> {
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
} else {
|
|
|
|
|
Uri uri = Uri.parse(advertisementData!.actionButtonsColl![index].iconOrImage);
|
|
|
|
|
if (await canLaunchUrl(uri)) {
|
|
|
|
|
await launchUrl(uri);
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
} else {
|
|
|
|
|
// if (await canLaunchUrl(uri)) {
|
|
|
|
|
await launchUrl(uri, mode: LaunchMode.externalApplication).catchError((err) {
|
|
|
|
|
// print(err);
|
|
|
|
|
Utils.showToast('Could not launch');
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
// } else {
|
|
|
|
|
// Utils.showToast('Could not launch');
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
|