Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting this issue while using tflite_package #273

Open
Puranjay9 opened this issue Jan 11, 2025 · 3 comments
Open

getting this issue while using tflite_package #273

Puranjay9 opened this issue Jan 11, 2025 · 3 comments

Comments

@Puranjay9
Copy link

../../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(
    ^^^^^^^^^^^^^^^^^^^^^^^^^
@bazinac
Copy link

bazinac commented Jan 11, 2025

+1

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

@bazinac
Copy link

bazinac commented Jan 11, 2025

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

@guyluz11
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants