todas las clases funcionales
This commit is contained in:
@ -41,11 +41,13 @@ Future<void> launchAemetURL() async {
|
||||
final url = Uri.parse(urlString);
|
||||
|
||||
try {
|
||||
if (await canLaunch(urlString)) {
|
||||
await launch(urlString);
|
||||
|
||||
/* if (await canLaunch(urlString)) {
|
||||
await launch(urlString);
|
||||
} else {
|
||||
throw 'Could not launch $urlString';
|
||||
}
|
||||
}*/
|
||||
} catch (e) {
|
||||
throw Exception('Error al lanzar la URL de Aemet: $e');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user