【发布时间】:2020-01-23 18:23:06
【问题描述】:
如何在 GET 函数上放置一个参数, 我在 dart 或 flutter 的文档中没有找到任何关于此的内容
String url = 'xxxxxx';
Future<String> makeRequest() async {
Map params = {
"anunciante_name"
"anunciante_pass"
"anunciante_email"
};
var _body = jsonDecode(params);
var response = await http
.get(Uri.encodeFull(url), headers: {"Content-type": "application/json", "key": "xxxxx", "token": "xxxxx"},);
print(response.body);
【问题讨论】: