extract videoattachment

This commit is contained in:
Salvatore Giordano
2020-04-22 11:55:05 +02:00
parent 7460651380
commit 17c171f984
5 changed files with 166 additions and 123 deletions
+14
View File
@@ -0,0 +1,14 @@
import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart';
Future<void> launchURL(BuildContext context, String url) async {
if (await canLaunch(url)) {
await launch(url);
} else {
Scaffold.of(context).showSnackBar(
SnackBar(
content: Text('Cannot launch the url'),
),
);
}
}