flutter-ml / google_ml_kit_flutter

A flutter plugin that implements Google's standalone ML Kit
MIT License
930 stars 707 forks source link

barcode_scanner crash #490

Closed ram-niwas1997 closed 11 months ago

ram-niwas1997 commented 1 year ago

../../flutter/.pub-cache/hosted/pub.dartlang.org/google_mlkit_barcode_scanning-0.8.0/lib/src/barcode_scanner.dart:207:9: Error: 'Uint8List' isn't a type. final Uint8List rawBytes; ^^^^^^^^^ ../../flutter/.pub-cache/hosted/pub.dartlang.org/google_mlkit_barcode_scanning-0.8.0/lib/src/barcode_scanner.dart:210:9: Error: 'Rect' isn't a type. final Rect boundingBox; ^^^^ Screenshot 2023-07-20 at 5 10 28 PM

fbernaly commented 1 year ago

@ram-niwas1997: could you provide a QR code example where the boundingBox is null or te one you use to throw this error.

ram-niwas1997 commented 1 year ago

when I import this plugin => google_ml_kit: ^0.16.1 then this above error occur.

fbernaly commented 1 year ago

@ram-niwas1997 : did it crash when you scan the QR code or just by importing the plugin without scanning? If the crash happens when you scan, please share the QR code, otherwise I wont be able to help you.

fbernaly commented 1 year ago

Fix in PR: https://github.com/flutter-ml/google_ml_kit_flutter/pull/500

vinhmdev commented 11 months ago

Me too, do you have any solution for this issue?

fbernaly commented 11 months ago

yes, it was included in: google_mlkit_barcode_scanning v0.9.0