问题复现


百度翻译下


简而言之:map不是list子类。是这个意思把。

分析

找源码发现我 chldren:[] 给它返回的是widget,但是它需要接收的是List

解决它

直接给它转list

其实这是个非常低级的错误。。

flutter 问题之MappedListIterableis not a subtype of type List解决相关推荐

  1. flutter type ‘int‘ is not a subtype of type ‘String?‘

    type 'int' is not a subtype of type 'String?' 不是int,将int改成String类型 Unhandled Exception: type 'double ...

  2. 【flutter】type ‘Null‘ is not a subtype of type ‘bool‘

    type 'Null' is not a subtype of type 'bool' 类型不对 解决方法 判断返回的类型是否正确 print('类型:${data['isDayTime'].runt ...

  3. Dart或Flutter中解决异常-type ‘int‘ is not a subtype of type ‘double‘

    文章目录 出现场景 解决方案 声明num(推荐) 判断类型 出现场景 服务端返回的金额数据可能是整数,也可能是小数. 无论我们按int或double来解析,都可能出错. 如果我们定义的类型是int,返 ...

  4. Flutter-解决Try catch出现异常:type ‘_TypeError‘ is not a subtype of type ‘Exception‘ in type cast

    文章目录 出现场景 解决方案 分开处理(推荐) 判断类型 出现场景 使用Dio时,网络请求可能会出现异常,需要用try catch捕获. 捕获代码如下 try {var response = awai ...

  5. TypeError: super(type, obj): obj must be an instance or subtype of type这个问题怎么处理?

    TypeError: super(type, obj): obj must be an instance or subtype of type这个问题怎么处理? 这个错误通常发生在使用super()函 ...

  6. Python提示 TypeError: super(type, obj): obj must be an instance or subtype of type问题

    Python提示 TypeError: super(type, obj): obj must be an instance or subtype of type问题 简述问题 在工作中有一天将debu ...

  7. TypeError: super(type, obj): obj must be an instance or subtype of type

    问题 今天学习<Python Web 开发实战>自定义转换器这一小节,书中有段代码如下: class ListConverter(BaseConverter):def __init__(s ...

  8. type ‘_Map<String, dynamic>‘ is not a subtype of type ‘Map<String, Object>‘

    type '_Map<String, dynamic>' is not a subtype of type 'Map<String, Object>' 使用Map<Str ...

  9. TypeError: super(type, obj): obj must be an instance or subtype of type 该错误的一次处理

    我在写maya类的时候遇到,版本python2.7 folder lib mayaclass.py base类 A(base)类 ui.py 其中A继承base ui.py文件中内容 #python2 ...

  10. I/flutter ( 7317): type ‘_Map<String, dynamic>‘ is not a subtype of type ‘Folder‘

    记录一个bug,再记录一下自己的新"发现". 在flutter里面将后端获取的数据转换成本地模型的时候,在模型里面使用了其他模型类型(比如外键这种) 数据结构如下(JSON): { ...

最新文章

  1. Linux socket 网络编程 常用头文件
  2. 星际2的一些技术特性
  3. 关于SQL Server安装文件挂起错误解决办法
  4. spring-在配置文件中配置DAO时直接引用DataSource
  5. 三个实用的提升网页性能技巧
  6. Find命令使用详解
  7. python vbscript_将VBScript转换为Python
  8. response.getWriter().write()与out.print()的区别
  9. coreldraw x4如何出血_告诉你如何把cdr转换成适合印刷的pdf
  10. Java hook qpi_Java中内部类对象的创建以及hook机制
  11. 再见 FTP/SFTP!是时候拥抱下一代文件传输利器 Croc 了!
  12. 下载centos(阿里云)
  13. PHP报错 File:E:\\...\index\\controller\\Test.php Line(18) Illegal offset type in isset or empty
  14. pyqt4的一些相关资料整理
  15. 英语学术论文写作常用词汇
  16. 复制粘贴到word文档中的表格超出页面该怎么办
  17. 简述计算机组装的具体流程,自己动手组装电脑详细步骤【图文】
  18. 性能优化之节流(throttling)与防抖(debounce)
  19. 轻松制作美容美发线下门店电子优惠券的实用方法分享
  20. #每天一篇论文#(216/365)Adaptive Tracking Control of Nonholonomic Mobile Manipulators Using Recurrent Neura

热门文章

  1. 动态NAT64实验配置
  2. 内部收益率计算公式用计算机,用excel怎么计算内部收益率?
  3. python股票量化交易学习目录
  4. 由浅入深了解统计机器翻译模型
  5. macOS禁用指定应用联网的方法
  6. 圆形矢量场field driven strength效果
  7. android ios 对比 组件_Android和iOS的区别(从开发角度比较)
  8. 【Lua杂谈】debug.getinfo源码分析——使用C API重写lfunctimer
  9. 怎么用计算机程序求根公式,一元四次方程求根公式
  10. 2019BJFU 网站设计(孙俏-web前端开发)实验代码-181002222