Merged
Conversation
fix: Assign event channel streams to null on stop()
fix: increase minSdkVersion from 21 to 23
Bumps androidx.camera:camera-lifecycle from 1.5.0 to 1.5.1. --- updated-dependencies: - dependency-name: androidx.camera:camera-lifecycle dependency-version: 1.5.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps androidx.camera:camera-camera2 from 1.5.0 to 1.5.1. --- updated-dependencies: - dependency-name: androidx.camera:camera-camera2 dependency-version: 1.5.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
This reverts commit 4a3008a.
- Add flutter/services.dart import for DeviceOrientation enum - Update all BarcodePainter constructor calls to include required deviceOrientation parameter - Set deviceOrientation to DeviceOrientation.portraitUp for all test cases - Fixes compilation errors after BarcodePainter constructor was updated to require deviceOrientation All 6 tests now pass successfully.
This reverts commit 80d2195.
- Refactored Android orientation detection to use `OrientationEventListener`, improving accuracy during `MobileScanner` initialization. - Updated `BarcodePainter` to dynamically adjust `cameraPreviewSize` based on `deviceOrientation`, resolving overlay misalignment during device rotations.
As with official 1P plugins, these also don't use a header for the changelog, so I removed that here, too. For example: https://github.com/flutter/packages/blob/main/packages/camera/camera/CHANGELOG.md
fix(orientation): refactor orientation detection and fix related issues
…rientation fix: replaced dead analysisBuilder with correct target rotation
…tation fix: ios overlay orientation
…ends on which platform is used
# Conflicts: # CHANGELOG.md
…if not, whole rawDecodedBytes will be null
fix: migrate rawBytes to byte array from payloadStringValue.
fix: macos overlay text
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Highlights
switchCamera()method withToggleLensTypeorSelectCameraoptions.rawDecodedBytesfield toBarcodewhich replacesBarcode.rawBytes. On Apple platforms, this returns aDecodedVisionBarcodeBytescontainingbytes(decoded payload, without header/padding) andrawBytes(full raw payload, available on iOS 17.0+ / macOS 14.0+). On Android and web, this returns aDecodedBarcodeBytescontainingbytes.Improvements
boundingBoxtocornerPointsfor more accurate scan window detection.ITF-Two-of-Five.MobileScannerMethodsandMobileScannerEvents.calculateBoxFitRatio()is now deprecated.Bug Fixes
isPausedflag was not reset whenstart()was called.imageAnalysisnot being unbound on dispose.rawBytesreturning incorrect data for barcodes containing non-ASCII characters (e.g.ø). For QR codes, bytes are now extracted directly from the error-corrected bit stream viaCIQRCodeDescriptor, bypassing the Vision string API entirely. For Aztec, DataMatrix, PDF417 and linear formats, the ISO-Latin-1 round-trip is used to recover the original bytes frompayloadStringValue.displayValuereturning a garbled Latin-1 string (e.g.hellø) for barcodes with non-ASCII UTF-8 content. It is now correctly decoded to UTF-8 (e.g.hellø).