Open abulka opened 1 year ago
I installed 5.0.2 and the readme examples and API doco uses deprecated calls canLaunch and launch. E.g. the example
5.0.2
canLaunch
launch
Future<void> _onOpen(LinkableElement link) async { if (await canLaunch(link.url)) { await launch(link.url); } else { throw 'Could not launch $link'; } }
should be something like:
Future<void> _onOpen(LinkableElement link) async { final Uri url = Uri.parse(link.url); if (await canLaunchUrl(url)) { await launchUrl(url); } else { throw 'Could not launch $link'; } }
This is pretty confusing for newcomers to this project.
I installed
5.0.2
and the readme examples and API doco uses deprecated callscanLaunch
andlaunch
. E.g. the exampleshould be something like:
This is pretty confusing for newcomers to this project.