build: update url_launcher

This commit is contained in:
Rongjian Zhang
2022-06-26 14:23:50 +08:00
parent bad5327928
commit 8114cff317
8 changed files with 28 additions and 14 deletions

View File

@@ -742,7 +742,7 @@ class AuthModel with ChangeNotifier {
final repoScope = publicOnly ? 'public_repo' : 'repo';
final scope = Uri.encodeComponent(
['user', repoScope, 'read:org', 'notifications'].join(','));
launchUrl(
launchStringUrl(
'https://github.com/login/oauth/authorize?client_id=$clientId&redirect_uri=gittouch://login&scope=$scope&state=$_oauthState',
);
}

View File

@@ -259,7 +259,7 @@ class ThemeModel with ChangeNotifier {
replace: replace,
);
} else {
launchUrl(url);
launchStringUrl(url);
}
}