type ‘String‘ is not a subtype of type ‘int‘ of ‘index‘

短命女 2022-10-29 01:51 310阅读 0赞

刚入手 flutter,在解析数据时总是报错 type ‘String’ is not a subtype of type ‘int’ of ‘index’ 但是获取数据没有问题

只需要先将String类型数据json编码为Map数据 即可

  1. Map<String, dynamic> responseData = jsonDecode(response.data);

发表评论

表情:
评论列表 (有 0 条评论,310人围观)

还没有评论,来说两句吧...

相关阅读