khoren93 / flutter_zxing

Flutter plugin for scanning and generating QR codes using the ZXing library, supporting Android, iOS, and desktop platforms
https://pub.dev/packages/flutter_zxing
MIT License
89 stars 50 forks source link

`tryInverted` does not work with `readBarcodeImagePathString()` #72

Closed kaboc closed 1 year ago

kaboc commented 1 year ago

Inverted QR codes that can be scanned with ReaderWidget cannot be scanned with readBarcodeImagePathString().

final code = await zx.readBarcodeImagePathString(
  'image path',
  params: Params(
    tryHarder: true,
    tryInverted: true,
  ),
);

Commenting out tryHarder: true did not affect the result.

kaboc commented 1 year ago

It appears that this was fixed at 0.10.0, right? Inverted QR codes were read correctly after I updated my app to use the new version and replaced Params with DecodeParams.

khoren93 commented 1 year ago

Thank you for your message and for confirming that the issue was fixed.

I'll go ahead and close this issue. If you have any further issues or questions, please don't hesitate to reach out.