首页 > 解决方案 > 我如何获得 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'

先感谢您。

标签: flutterdart

解决方案


推荐阅读