升级到新版本时出现问题

时间:2019-04-24 15:24:39

标签: 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上失败 在iPhoneXʀ上启动应用程序时出错。

颤抖的医生没问题

但是在扑动时显示此问题吗?

有人可以帮助我吗?

3 个答案:

答案 0 :(得分:0)

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

答案 1 :(得分:0)

我不确定导致错误的确切原因,但是,如果您使用的是flare_flutter库,请将其升级到最新版本。

答案 2 :(得分:0)

只需在Pubspec.yaml中更改Depndency,但这仅在flutter 1.5.4hotfix sdk中尝试过

flare_flutter:^ 1.5.4

更改为

flare_flutter:<= 1.5.0

相关问题