1.在initState中获取上下文
Future.delayed(Duration.zero, () {
// ProgressDialog.showProgress(context);
_requestQuestionUser();
});
2.类型报错,需要转换类型,如:
List<dynamic> oldList = [......];
//List<dynamic>转化成List<String>
List<String> list = List<String>.form(oldList)
网友评论