mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-09-10 13:57:18 +00:00
14 lines
247 B
Dart
14 lines
247 B
Dart
|
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);
|
||
|
}
|
||
|
}
|