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