Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flutter 无法在http调用颤振中传递查询参数?_Flutter_Dart - Fatal编程技术网

Flutter 无法在http调用颤振中传递查询参数?

Flutter 无法在http调用颤振中传递查询参数?,flutter,dart,Flutter,Dart,我试图在上面的代码中传递查询参数,但是我得到了 final body = {"Status": status}; final uri = Uri.http(EndpointsUrl.baseUrlURi, EndpointsUrl.appoinment,body); } 有人请指导如何在HTTP get call in FLATTER中传递查询参数查询参数应添加到url末尾,并带有“?”符号。我不确定您在这里要做什么。请改用此符号 { "statusCo

我试图在上面的代码中传递查询参数,但是我得到了

 final body = {"Status": status};
final uri =
    Uri.http(EndpointsUrl.baseUrlURi, EndpointsUrl.appoinment,body);
}


有人请指导如何在HTTP get call in FLATTER中传递查询参数

查询参数应添加到url末尾,并带有“?”符号。我不确定您在这里要做什么。

请改用此符号

{
"statusCode": 400,
"message": "Status Cannot be undefined.",
"error": "Bad Request"

我能看看你到底是怎么写这个查询的吗?
    var uri = Uri.parse('http://www.myappserver.com');
    uri = uri.replace(query: 'yourParam=0');
    print(uri);