qr_lens 1.1.5
qr_lens: ^1.1.5 copied to clipboard
A polished QR code scanner with animated capture overlay, live corner tracking, torch control, scan history, and URL detection. Built on camera and ML Kit.
1.1.5 #
- Fix iOS screenshot/gallery image scanning: use
dart:ui-decodedInputImage.fromByteswithbgra8888as fallback whenfromFilePathreturns no barcodes. The fallback is guarded by try-catch to handle Android wherefromBytesonly supports YUV formats.
1.1.4 #
- Fix iOS screenshot/gallery image scanning: replace
InputImage.fromFilePathwith manualdart:uidecoding +InputImage.fromBytesto resolve detection failures on iOS.
1.1.3 #
- Fix QR code fly-to-center animation disappearing after updating to vector_math 2.2.0: replaced deprecated
translate/scaleMatrix4 calls withtranslateByDouble/scaleByDouble, passing the correct homogeneoustw=1.0argument so the transform matrix remains valid.
1.1.2 #
- Add
onQrNotFoundcallback toQrLensScannerPage— called when an image is picked from the gallery but contains no detectable QR code. Falls back to the built-in snack bar when not provided.
1.1.1 #
- Fix iOS camera rotation: frames are already in display orientation so ML Kit now receives
rotation0deg, correcting corner-coordinate mapping on iOS.
1.1.0 #
- Add
stopStream()andresumeStream()methods toQrLensScannerControllerfor manual camera stream control. - Add
autoResumeparameter toQrLensScannerPage— whenfalse, the scanner stays frozen after a scan untilresumeStream()is called manually. - Add
scanLineAnimationDuration,boxAnimationDuration, andqrMoveAnimationDurationparameters to allow customising animation timing. - Extract
QrContentWidgetas a public standalone widget, now reused by both the defaultScannerBoxand customviewFinderBuilderlayouts. - Fix
scanFromFileto show the result directly without running the capture animation. - Fix camera stream resume to clear the frozen frame before restarting.
1.0.1 #
- Rename
ScannerPagetoQrLensScannerPage.
1.0.0 #
- Initial release.
- QR code scanning with live corner tracking overlay.
- Animated capture feedback with haptic response.
- Torch/flashlight toggle.
- Front/back camera switching.
- Scan history with URL detection.
- Copy-to-clipboard and URL opening support.