feat(app): artifact viewer actions are bottom icons; swipe pages; native download, share and open in browser
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user