selfprivacy.org.app/lib/utils/launch_url.dart

14 lines
247 B
Dart
Raw Normal View History

import 'package:url_launcher/url_launcher.dart';
void launchURL(final url) async {
try {
final Uri uri = Uri.parse(url);
await launchUrl(
uri,
mode: LaunchMode.externalApplication,
);
} catch (e) {
print(e);
}
}