mirror of
https://github.com/krawieck/lemmur/
synced 2024-12-17 10:59:29 +01:00
11 lines
250 B
Dart
11 lines
250 B
Dart
import 'package:url_launcher/url_launcher.dart' as ul;
|
|
|
|
Future<void> urlLauncher(String url) async {
|
|
if (await ul.canLaunch(url)) {
|
|
await ul.launch(url);
|
|
} else {
|
|
throw Exception();
|
|
// TODO: handle opening links to stuff in app
|
|
}
|
|
}
|