flutter-tflite icon indicating copy to clipboard operation
flutter-tflite copied to clipboard

getting this issue while using tflite_package

Open Puranjay9 opened this issue 1 year ago • 3 comments

../../AppData/Local/Pub/Cache/hosted/pub.dev/tflite_flutter-0.10.4/lib/src/tensor.dart:58:12: Error: The method 'UnmodifiableUint8ListView' isn't defined for the class 'Tensor'.

  • 'Tensor' is from 'package:tflite_flutter/src/tensor.dart' ('../../AppData/Local/Pub/Cache/hosted/pub.dev/tflite_flutter-0.10.4/lib/src/tensor.dart'). Try correcting the name to the name of an existing method, or defining a method named 'UnmodifiableUint8ListView'. return UnmodifiableUint8ListView( ^^^^^^^^^^^^^^^^^^^^^^^^^

Puranjay9 avatar Jan 11 '25 10:01 Puranjay9

+1

It seems it is because UnmodifiableUint8ListView type is no longer supported in flutter 3.24+, which breaks this library...

bazinac avatar Jan 11 '25 16:01 bazinac

It seems issue is brought by win32. There is however solution to override referenced dependency in pubspec.yaml before this is solved in this project...

dependency_overrides:
  win32: ^5.5.4

bazinac avatar Jan 11 '25 17:01 bazinac

It seems issue is brought by win32. There is however solution to override referenced dependency in pubspec.yaml before this is solved in this project...

dependency_overrides:
  win32: ^5.5.4

I think opening a pr will make it "solved in this project" faster ;) Hopefully, they will merge it even if the project does not get a lot of attention.

guyluz11 avatar Jan 13 '25 21:01 guyluz11