Showing
1 changed file
with
17 additions
and
0 deletions
| @@ -2,6 +2,23 @@ | @@ -2,6 +2,23 @@ | ||
| 2 | BREAKING CHANGES: | 2 | BREAKING CHANGES: |
| 3 | * The `width` and `height` of `BarcodeCapture` have been removed, in favor of `size`. | 3 | * The `width` and `height` of `BarcodeCapture` have been removed, in favor of `size`. |
| 4 | * The `raw` attribute is now `Object?` instead of `dynamic`, so that it participates in type promotion. | 4 | * The `raw` attribute is now `Object?` instead of `dynamic`, so that it participates in type promotion. |
| 5 | +* The `MobileScannerArguments` class has been removed from the public API, as it is an internal type. | ||
| 6 | +* The `cameraFacingOverride` named argument for the `start()` method has been renamed to `cameraDirection`. | ||
| 7 | +* The `analyzeImage` function now correctly returns a `BarcodeCapture?` instead of a boolean. | ||
| 8 | +* The `formats` attribute of the `MobileScannerController` is now non-null. | ||
| 9 | +* The `MobileScannerState` enum has been renamed to `MobileScannerAuthorizationState`. | ||
| 10 | +* The various `ValueNotifier`s for the camera state have been removed. Use the `value` of the `MobileScannerController` instead. | ||
| 11 | +* The `hasTorch` getter has been removed. Instead, use the torch state of the controller's value. | ||
| 12 | + The `TorchState` enum now provides a new value for unavailable flashlights. | ||
| 13 | +* The `autoStart` attribute has been removed from the `MobileScannerController`. The controller should be manually started on-demand. | ||
| 14 | +* A controller is now required for the `MobileScanner` widget. | ||
| 15 | +* The `onPremissionSet`, `onStart` and `onScannerStarted` methods have been removed from the `MobileScanner` widget. Instead, await `MobileScannerController.start()`. | ||
| 16 | +* The `startDelay` has been removed from the `MobileScanner` widget. Instead, use a delay between manual starts of one or more controllers. | ||
| 17 | +* The `onDetect` method has been removed from the `MobileScanner` widget. Instead, listen to `MobileScannerController.barcodes` directly. | ||
| 18 | +* The `overlay` widget of the `MobileScanner` has been replaced by a new property, `overlayBuilder`, which provides the constraints for the overlay. | ||
| 19 | + | ||
| 20 | +Improvements: | ||
| 21 | +* The `MobileScannerController` is now a ChangeNotifier, with `MobileScannerState` as its model. | ||
| 5 | 22 | ||
| 6 | ## 4.0.1 | 23 | ## 4.0.1 |
| 7 | Bugs fixed: | 24 | Bugs fixed: |
-
Please register or login to post a comment