base_project
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
|
||||
Future<void> launchExternalURL(String url) async {
|
||||
Uri uri =Uri.parse(url);
|
||||
|
||||
if (await canLaunchUrl(uri)) {
|
||||
await launchUrl(uri,mode: LaunchMode.externalApplication);
|
||||
}
|
||||
// else {
|
||||
// throw 'Could not launch $url';
|
||||
// }
|
||||
}
|
||||
Reference in New Issue
Block a user