Skip to content

Commit

Permalink
use canLaunchUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
yihong1120 committed Dec 30, 2023
1 parent f815174 commit 2aaae95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/services/social_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class SocialService {
final String loginUrl = '$baseUrl/social/login/${provider.id}';

// 使用 url_launcher 打开浏览器窗口
if (await canLaunch(loginUrl)) {
if (await canLaunchUrl(loginUrl)) {
await launch(loginUrl);
} else {
throw 'Could not launch $loginUrl';
Expand Down

0 comments on commit 2aaae95

Please sign in to comment.