首页 > 解决方案 > 当我升级到新版本时出现问题

问题描述

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 上启动应用程序时出错。

扑医生没问题

但是当颤动运行时显示这个问题?

谁能帮我?

标签: flutter

解决方案


将第 875 行本地更改为 Uint16List _indices; 和第 936 行到 Uint16List.fromList(triangles); 暂时解决问题并允许您运行应用程序,即使它可能不是最佳解决方案(不熟悉 Flare 数据)。


推荐阅读