Showing
1 changed file
with
12 additions
and
10 deletions
| 1 | ## 3.0.0-beta.3 | 1 | ## 3.0.0-beta.3 |
| 2 | +Deprecated: | ||
| 3 | +* The `onStart` method has been renamed to `onScannerStarted`. | ||
| 4 | +* The `onPermissionSet` argument of the `MobileScannerController` is now deprecated. | ||
| 5 | + | ||
| 2 | Breaking changes: | 6 | Breaking changes: |
| 3 | * `MobileScannerException` now uses an `errorCode` instead of a `message`. | 7 | * `MobileScannerException` now uses an `errorCode` instead of a `message`. |
| 4 | * `MobileScannerException` now contains additional details from the original error. | 8 | * `MobileScannerException` now contains additional details from the original error. |
| 5 | * Refactored `MobileScannerController.start()` to throw `MobileScannerException`s | 9 | * Refactored `MobileScannerController.start()` to throw `MobileScannerException`s |
| 6 | with consistent error codes, rather than string messages. | 10 | with consistent error codes, rather than string messages. |
| 7 | -* The previously deprecated `onPermissionSet` is now removed from the `MobileScanner` widget. | ||
| 8 | -* The `onPermissionSet` argument of the `MobileScannerController` is now deprecated. | ||
| 9 | To handle permission errors, consider catching the result of `MobileScannerController.start()`. | 11 | To handle permission errors, consider catching the result of `MobileScannerController.start()`. |
| 10 | -* Toggling the device torch now does nothing if the device has no torch, rather than throwing an error. | ||
| 11 | -* The `MobileScanner` now only starts its internal `controller`. | ||
| 12 | - If providing your own controller, consider calling `start()` on it. | ||
| 13 | -* The `onStart` method has been renamed to `onScannerStarted`. | ||
| 14 | * The `autoResume` attribute has been removed from the `MobileScanner` widget. | 12 | * The `autoResume` attribute has been removed from the `MobileScanner` widget. |
| 15 | The controller already automatically resumes, so it had no effect. | 13 | The controller already automatically resumes, so it had no effect. |
| 16 | * Removed `MobileScannerCallback` and `MobileScannerArgumentsCallback` typedef. | 14 | * Removed `MobileScannerCallback` and `MobileScannerArgumentsCallback` typedef. |
| 17 | - | 15 | + |
| 16 | +Improvements: | ||
| 17 | +* Toggling the device torch now does nothing if the device has no torch, rather than throwing an error. | ||
| 18 | + | ||
| 19 | +Features: | ||
| 20 | +* Added a new `placeholderBuilder` function to the `MobileScanner` widget to customize the preview placeholder. | ||
| 21 | +* Added `autoStart` parameter to MobileScannerController(). If set to false, controller won't start automatically. | ||
| 22 | + | ||
| 18 | Fixed: | 23 | Fixed: |
| 19 | * Fixed a memory leak where the `MobileScanner` widget would never close its subscription to the barcode events. | 24 | * Fixed a memory leak where the `MobileScanner` widget would never close its subscription to the barcode events. |
| 20 | * Fixed a dependency on all properties of `MediaQueryData` to build the preview widget. Now the preview only depends on its layout constraints. | 25 | * Fixed a dependency on all properties of `MediaQueryData` to build the preview widget. Now the preview only depends on its layout constraints. |
| 21 | * Fixed a potential crash when the scanner is restarted due to the app being resumed. | 26 | * Fixed a potential crash when the scanner is restarted due to the app being resumed. |
| 22 | * Various documentation improvements. | 27 | * Various documentation improvements. |
| 23 | - | ||
| 24 | -Features: | ||
| 25 | -* Added a new `placeholderBuilder` function to the `MobileScanner` widget to customize the preview placeholder. | ||
| 26 | 28 | ||
| 27 | ## 3.0.0-beta.2 | 29 | ## 3.0.0-beta.2 |
| 28 | Breaking changes: | 30 | Breaking changes: |
-
Please register or login to post a comment