2020-08-30 16:49:59 +02:00
|
|
|
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();
|
2020-08-31 19:04:23 +02:00
|
|
|
// TODO: handle opening links to stuff in app
|
2020-08-30 16:49:59 +02:00
|
|
|
}
|
|
|
|
}
|