Showing
3 changed files
with
19 additions
and
5 deletions
| 1 | -## 3.2.1 | 1 | +## 3.3.0 |
| 2 | Bugs fixed: | 2 | Bugs fixed: |
| 3 | +* Fixed bug where onDetect method was being called multiple times | ||
| 3 | * [Android] Fix Gradle 8 compatibility by adding the `namespace` attribute to the build.gradle. | 4 | * [Android] Fix Gradle 8 compatibility by adding the `namespace` attribute to the build.gradle. |
| 4 | 5 | ||
| 6 | +Improvements: | ||
| 7 | +* [Android] Upgraded camera2 dependency | ||
| 8 | +* Added zoomScale value notifier in MobileScannerController for the application to know the zoom scale value set actually. | ||
| 9 | + The value is notified from the native SDK(CameraX/AVFoundation). | ||
| 10 | +* Added resetZoomScale() in MobileScannerController to reset zoom ratio with 1x. | ||
| 11 | + Both Android and iOS, if the device have ultra-wide camera, calling setZoomScale with small value causes to use ultra-wide camera and may be diffcult to detect barcodes. | ||
| 12 | + resetZoomScale() is useful to use standard camera with zoom 1x. | ||
| 13 | + setZoomScale() with the specific value can realize same effect, but added resetZoomScale for avoiding floating point errors. | ||
| 14 | + The application can know what zoom scale value is selected actually by subscribing zoomScale above after calling resetZoomScale. | ||
| 15 | +* [iOS] Call resetZoomScale while starting scan. | ||
| 16 | + Android camera is initialized with a zoom of 1x, whereas iOS is initialized with the minimum zoom value, which causes to select the ultra-wide camera unintentionally ([iOS] Impossible to focus and scan the QR code due to picking the wide back camera #554). | ||
| 17 | + Fixed this issue by calling resetZoomScale | ||
| 18 | +* [iOS] Remove zoom animation with ramp function to match Android behavior. | ||
| 19 | + | ||
| 5 | ## 3.2.0 | 20 | ## 3.2.0 |
| 6 | Improvements: | 21 | Improvements: |
| 7 | * [iOS] Updated GoogleMLKit/BarcodeScanning to 4.0.0 | 22 | * [iOS] Updated GoogleMLKit/BarcodeScanning to 4.0.0 |
| @@ -3,7 +3,7 @@ description: Demonstrates how to use the mobile_scanner plugin. | @@ -3,7 +3,7 @@ description: Demonstrates how to use the mobile_scanner plugin. | ||
| 3 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev | 3 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev |
| 4 | 4 | ||
| 5 | environment: | 5 | environment: |
| 6 | - sdk: ">=2.12.0 <3.0.0" | 6 | + sdk: ">=2.12.0 <4.0.0" |
| 7 | 7 | ||
| 8 | dependencies: | 8 | dependencies: |
| 9 | flutter: | 9 | flutter: |
| 1 | name: mobile_scanner | 1 | name: mobile_scanner |
| 2 | description: 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. | 2 | description: 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. |
| 3 | -version: 3.2.1 | 3 | +version: 3.3.0 |
| 4 | repository: https://github.com/juliansteenbakker/mobile_scanner | 4 | repository: https://github.com/juliansteenbakker/mobile_scanner |
| 5 | 5 | ||
| 6 | environment: | 6 | environment: |
| 7 | - sdk: ">=2.17.0 <3.0.0" | 7 | + sdk: ">=2.17.0 <4.0.0" |
| 8 | flutter: ">=3.0.0" | 8 | flutter: ">=3.0.0" |
| 9 | 9 | ||
| 10 | dependencies: | 10 | dependencies: |
| @@ -14,7 +14,6 @@ dependencies: | @@ -14,7 +14,6 @@ dependencies: | ||
| 14 | sdk: flutter | 14 | sdk: flutter |
| 15 | js: ^0.6.3 | 15 | js: ^0.6.3 |
| 16 | 16 | ||
| 17 | - | ||
| 18 | dev_dependencies: | 17 | dev_dependencies: |
| 19 | flutter_test: | 18 | flutter_test: |
| 20 | sdk: flutter | 19 | sdk: flutter |
-
Please register or login to post a comment