mohesu / barcode_scanner

A universal barcode and QR code scanner for Flutter based on MLKit. Uses CameraX on Android, AVFoundation on iOS and Apple Vision & AVFoundation on macOS.
Apache License 2.0
41 stars 31 forks source link

Cut Out Size should be nullable or the condition for this should accepted 0 AND Need provision to hide camera switch button #32

Closed Abhinav-Satija closed 1 year ago

Abhinav-Satija commented 1 year ago

original code assert( (cutOutWidth == null && cutOutHeight == null) || (cutOutSize == null && cutOutWidth != null && cutOutHeight != null), 'Use only cutOutWidth and cutOutHeight or only cutOutSize'); }

working one assert( (cutOutWidth == null && cutOutHeight == null) || (cutOutSize == 0.0 && cutOutWidth != null && cutOutHeight != null), 'Use only cutOutWidth and cutOutHeight or only cutOutSize'); }

can you update this release to another version?

rvndsngwn commented 1 year ago

Hi @Abhinav-Satija thanks for using this package.

Yes, I'll be improving this package always. I appreciate your suggestion.

rvndsngwn commented 1 year ago

0.0.4 https://pub.dev/packages/ai_barcode_scanner the latest version which fixes this issue.