jiawei
jiawei

Reputation: 1

flutter questions when i upgrade to new version

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);
             ^

Compiler failed on $HOME/xun/lib/main.dart Error launching application on iPhone Xʀ.

flutter doctor is no issues

but when flutter run display this issue?

can anyone help me?

Upvotes: 0

Views: 595

Answers (3)

Sumit Singh
Sumit Singh

Reputation: 1258

Simply change the Depndency in Pubspec.yaml but this i tried it only in flutter 1.5.4hotfix sdk

flare_flutter: ^1.5.4

change to

flare_flutter: <= 1.5.0

Upvotes: 0

Kakiang
Kakiang

Reputation: 1207

I'm not sure exactly what's the cause of your error, however if you are using flare_flutter library, upgrade it to the latest version.

Upvotes: 0

Julien
Julien

Reputation: 4163

Locally changing line 875 to Uint16List _indices; and line 936 to Uint16List.fromList(triangles); temporarily solves the issue and allows you to run the app, even though it may not be the best solution (not familiar with Flare data).

Upvotes: 1

Related Questions