Skip to content

The method 'UnmodifiableUint8ListView' isn't defined for the class 'Tensor'. #232

Closed
@andresgd7

Description

@andresgd7

Im using tflite_flutter-0.10.4 but UnmodifiableUint8ListView was deprecated from typed_data some while ago:
image

https://api.dart.dev/stable/2.13.4/dart-typed_data/dart-typed_data-library.html

When i try to run my code in android i get this:

../../../../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(

any fix?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions