Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

异步调用出问题 #31

Closed
cctvbtv123456 opened this issue Jul 7, 2020 · 2 comments
Closed

异步调用出问题 #31

cctvbtv123456 opened this issue Jul 7, 2020 · 2 comments

Comments

@cctvbtv123456
Copy link

这里调用
FutureBuilder(
future: Api.post_preview_study_home(params),

这是网络请求(代码执行到这EasyLoading.show(status: '加载中') 就不往下走了,什么原因 )
static Future post_preview_study_home(Map params) async {
print('params = $params');
EasyLoading.show(status: '加载中');
print(00000);
Response response = await http.post('/preview_study/home', params);
print(111111);
if (response.statusCode == 200) {
print(222222);
EasyLoading.dismiss();
Map dataMap = response.data;
return dataMap['data'];
} else {
EasyLoading.dismiss();
return null;
}
}

@RuErJieFei
Copy link

我也遇到了相同的问题

@nslogx
Copy link
Owner

nslogx commented Sep 24, 2020

请试试v1.3.0,如还有问题,请重新开个issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants