This commit is contained in:
quantulr
2023-02-08 23:48:25 +08:00
parent 53ff2fc59b
commit 1b88c226ad
14 changed files with 102 additions and 470 deletions

View File

@ -1,11 +1,5 @@
import 'package:http/http.dart' as http;
import 'package:dio/dio.dart';
class HttpClient {
HttpClient(this.header);
Map<String, String>? header;
Future post(Uri url) {
return http.post(url);
}
}
var dio = Dio(BaseOptions(
baseUrl: "http://localhost:8080",
));