Skip to content

Commit

Permalink
Address launch API deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
doctor-g committed Apr 28, 2024
1 parent 8ac346d commit 1cbaf47
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/screens/about.dart
Expand Up @@ -87,11 +87,9 @@ class _AboutPageState extends State<AboutPage> {
Widget _makeLink(String url, var style) => InkWell(
child: Text(url, style: style),
onTap: () async {
if (await canLaunch(url)) {
await launch(
url,
forceSafariVC: false,
);
var uri = Uri.parse(url);
if (await canLaunchUrl(uri)) {
await launchUrl(uri);
}
},
);
Expand Down

0 comments on commit 1cbaf47

Please sign in to comment.