flutter - 我如何获得 profileImagePath?
问题描述
有人可以帮忙吗,我正在开发一个颤振应用程序,我有:
{userdetails: [{profileImagePath: https%3A%2F%2Ftinyfac.es%2Fdata%2Favatars%2F344CFC24-61FB-426C-B3D1-CAD5BCBD3209-200w.jpeg, firstName: Abdul, lastName: Bozak, gender: Monsieur}]}
我只想要profileImagePath。
当我尝试
widget.userDetails['userdetails'][0]['profileImagePath']
然后我得到这个错误:
type 'String' is not a subtype of type 'int' of 'index'
先感谢您。
解决方案
推荐阅读
- node.js - 在 React 中发布数据 onClick
- mongodb - 如何在 MongoDB 聚合中添加自动递增字段?
- python - 在python中为多个变量分配多个值的问题
- python - 如何从 matpotlib 的子图中删除条形图?
- php - 根据 id 合并 Array 数据
- python - 应用自定义 groupby 聚合函数来查找 Numpy 数组的平均值
- python - 模板匹配 - 在 GUI 上匹配绘制形状
- node.js - Jhipster Prod 构建失败
- php - 运行 yarn start-debug-proxy 命令时出错
- python - 将字符串分隔到具有嵌套括号的列表中