Future launchURL(String url) async { var uri = Uri.parse(url).toString(); try { await launch(uri); } catch (e) { throw 'Could not launch $uri: $e'; } }