添加 github oAuth 认证,添加错误提醒

This commit is contained in:
yifeng.yl
2019-05-29 18:46:12 +08:00
parent 9e7cd804e5
commit dbcdbab7d2
13 changed files with 197 additions and 67 deletions

View File

@ -17,12 +17,12 @@ class NetUtils {
var response;
// 设置代理 便于本地 charles 抓包
// (dio.httpClientAdapter as DefaultHttpClientAdapter).onHttpClientCreate =
// (HttpClient client) {
// client.findProxy = (uri) {
// return "PROXY 30.10.26.193:8888";
// };
// };
(dio.httpClientAdapter as DefaultHttpClientAdapter).onHttpClientCreate =
(HttpClient client) {
client.findProxy = (uri) {
return "PROXY 30.10.29.190:8888";
};
};
Directory documentsDir = await getApplicationDocumentsDirectory();
String documentsPath = documentsDir.path;