Skip to content

Commit

Permalink
fixed analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
semack committed Jul 5, 2022
1 parent 3814d5b commit a1081cd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/ui/player_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,9 @@ class _PlayerScreenBloc {
}

Future openExternalUrl(String id) async {
var url = await _backendService.getExternalUrl(id);
await canLaunch(url) ? await launch(url) : throw 'Could not launch $url';
var urlString = await _backendService.getExternalUrl(id);
var url = Uri.parse(urlString);
await canLaunchUrl(url) ? await launchUrl(url) : throw 'Could not launch $urlString';
}

Future shareExternalUrl(SoftwareModel model) async {
Expand Down

0 comments on commit a1081cd

Please sign in to comment.