12 lines
348 B
Dart
12 lines
348 B
Dart
import 'package:url_launcher/url_launcher.dart';
|
|
|
|
/// Phones and desktops: the link opens in the system browser, which renders
|
|
/// what it can and offers to download the rest.
|
|
Future<bool> openArtifactExternally(Uri uri) async {
|
|
try {
|
|
return await launchUrl(uri, mode: LaunchMode.externalApplication);
|
|
} catch (_) {
|
|
return false;
|
|
}
|
|
}
|