【发布时间】:2021-03-13 04:00:31
【问题描述】:
请帮帮我... 我刚试过这段代码:
**try {
final response = http.get(url); // Giving error here
final extractedData = json.decode(response.body);
} catch (error) {
throw error;
}**
错误信息 "message": "没有为类型 'Future' 定义 getter 'body'。\n尝试导入定义 'body' 的库,将名称更正为现有 getter 的名称,或者定义一个名为'身体'。",
【问题讨论】:
标签: json flutter http dart fetchrequest