Skip to content

Comments

chore: release of v7.2.0#1660

Merged
juliansteenbakker merged 255 commits intomasterfrom
develop
Feb 18, 2026
Merged

chore: release of v7.2.0#1660
juliansteenbakker merged 255 commits intomasterfrom
develop

Conversation

@juliansteenbakker
Copy link
Owner

Highlights

  • Added support for switching between lens types (normal, wide, zoom) using the switchCamera() method with ToggleLensType or SelectCamera options.
  • Added rawDecodedBytes field to Barcode which replaces Barcode.rawBytes. On Apple platforms, this returns a DecodedVisionBarcodeBytes containing bytes (decoded payload, without header/padding) and rawBytes (full raw payload, available on iOS 17.0+ / macOS 14.0+). On Android and web, this returns a DecodedBarcodeBytes containing bytes.

Improvements

  • [Android] Migrated barcode bounding box from boundingBox to cornerPoints for more accurate scan window detection.
  • Added support for ITF-Two-of-Five.
  • Added constants for testing the method channel methods in MobileScannerMethods and MobileScannerEvents.
  • The global method calculateBoxFitRatio() is now deprecated.

Bug Fixes

  • [Android] Fixed incorrect texture size on orientation change.
  • [Android] Fixed a bug where the isPaused flag was not reset when start() was called.
  • [Android] Fixed imageAnalysis not being unbound on dispose.
  • [Android] Fixed an issue where the app orientation handling was not respecting auto-rotate settings
  • [Apple] Fixed rawBytes returning incorrect data for barcodes containing non-ASCII characters (e.g. ø). For QR codes, bytes are now extracted directly from the error-corrected bit stream via CIQRCodeDescriptor, 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 from payloadStringValue.
  • [Apple] Fixed displayValue returning 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ø).
  • [Apple] Fixed a bug where the barcode type results did not have a value.
  • [Apple] Fixed camera rotating, even when rotation is locked.
  • [macOS] Fixed barcode overlay text displaying upside down.
  • Fixed barcode overlay rendering at wrong position after orientation change.
  • Fixed a bug where taps were ignored on the scanner widget.
  • Fixed a bug where a controller that was only disposed would throw an incorrect error code.

juliansteenbakker and others added 30 commits September 23, 2025 19:12
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>
- 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.
- 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
juliansteenbakker and others added 26 commits February 18, 2026 11:49
…rientation

fix: replaced dead analysisBuilder with correct target rotation
fix: migrate rawBytes to byte array from payloadStringValue.
@juliansteenbakker juliansteenbakker changed the title release of v7.2.0 release: v7.2.0 Feb 18, 2026
@juliansteenbakker juliansteenbakker changed the title release: v7.2.0 chore: release of v7.2.0 Feb 18, 2026
@juliansteenbakker juliansteenbakker merged commit 3dbf63a into master Feb 18, 2026
12 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants