flutter - 当我升级到新版本时出现问题
问题描述
The argument type 'Int32List' can't be assigned to the parameter type
'Uint16List'
- 'Int32List' is from 'dart:typed_data'.
- 'Uint16List' is from 'dart:typed_data'.
Try changing the type of the parameter, or casting the argument to 'Uint16List'.
indices: _indices, textureCoordinates: _uvBuffer);
^
编译器$HOME/xun/lib/main.dart
在 iPhone X 上启动应用程序时出错。
扑医生没问题
但是当颤动运行时显示这个问题?
谁能帮我?
解决方案
将第 875 行本地更改为 Uint16List _indices; 和第 936 行到 Uint16List.fromList(triangles); 暂时解决问题并允许您运行应用程序,即使它可能不是最佳解决方案(不熟悉 Flare 数据)。
推荐阅读
- caching - gem5 中的缓存方式是显式的还是隐含/源自缓存集的数量和缓存大小?
- java - Spring Boot EhCache:存储没有键的对象列表
- javascript - 我如何在 JQuery 中附加两个类
- java - 如何从侦听器类中的服务激活器消息对象获取文件
- flutter - 如何将 Payfort 集成到颤振中,或者颤振中是否有不同的支付处理器可用?
- javascript - 如何将 div 添加到导航菜单中的父元素?
- c - 在 cmd (C) 中为文本着色
- c++ - 旋转矩阵的问题(openGL/glm)
- google-cloud-platform - 更改多个用户的 GCP IAM 角色
- python - 动画函数必须返回一系列 Artist 对象