We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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.
The text was updated successfully, but these errors were encountered: