Navaron Bracke

update changelog with additional fixes

@@ -7,6 +7,29 @@ Breaking changes: @@ -7,6 +7,29 @@ Breaking changes:
7 * The previously deprecated `onPermissionSet` is now removed from the `MobileScanner` widget. 7 * The previously deprecated `onPermissionSet` is now removed from the `MobileScanner` widget.
8 To handle permission errors, consider catching the result of `MobileScannerController.start()`. 8 To handle permission errors, consider catching the result of `MobileScannerController.start()`.
9 * Toggling the device torch now does nothing if the device has no torch, rather than throwing an error. 9 * Toggling the device torch now does nothing if the device has no torch, rather than throwing an error.
  10 +* The `controller` of the `MobileScanner` widget is now required.
  11 +* The `onDetect` method of `MobileScanner` has been renamed to `onBarcodeDetected`.
  12 +* The `MobileScanner` widget no longer starts its `controller`.
  13 + Clients of the widget should call `controller.start()` when appropriate.
  14 +* The `onStart` method has been removed.
  15 + To retrieve the start arguments of the controller, await the `start()` method:
  16 +```dart
  17 +final arguments = await controller.start();
  18 +```
  19 + To retrieve the updated preview size when the application resumes from the background,
  20 + use the new `onScannerRestarted` method.
  21 +* The `autoResume` attribute has been removed from the `MobileScanner` widget.
  22 + The controller already automatically resumes, so it had no effect.
  23 +* Removed `MobileScannerCallback` and `MobileScannerArgumentsCallback` typedef.
  24 +
  25 +Fixed:
  26 +* Fixed a memory leak where the `MobileScanner` widget would never close its subscription to the barcode events.
  27 +* Fixed a dependency on all properties of `MediaQueryData` to build the preview widget. Now the preview only depends on its layout constraints.
  28 +* Fixed a potential crash when the scanner is restarted due to the app being resumed.
  29 +* Various documentation improvements.
  30 +
  31 +Features:
  32 +* Added a new `placeholderBuilder` function to the `MobileScanner` widget to customize the preview placeholder.
10 33
11 ## 3.0.0-beta.2 34 ## 3.0.0-beta.2
12 Breaking changes: 35 Breaking changes: