Merge branch 'master_mohemm_flutter'

# Conflicts:
#	pubspec.yaml
mohemm_HMG_flutter_upgrade
haroon amjad 9 months ago
commit 5e3477da4c

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

@ -61,7 +61,7 @@ dependencies:
platform_device_id: ^1.0.1 platform_device_id: ^1.0.1
image_picker: ^0.8.5+3 image_picker: ^0.8.5+3
file_picker: 5.2.5 file_picker: 5.2.5
geolocator: ^9.0.2 geolocator: ^11.1.0
month_year_picker: ^0.2.0+1 month_year_picker: ^0.2.0+1
month_picker_dialog_2: ^0.5.5 month_picker_dialog_2: ^0.5.5
# open_file: ^3.2.1 # open_file: ^3.2.1

Loading…
Cancel
Save