Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
mobile_scanner
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Navaron Bracke
2022-11-20 14:05:27 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d42ae7eeed872bc7b0a749e571c499a096c666af
d42ae7ee
1 parent
16fabef0
update changelog with additional fixes
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
CHANGELOG.md
CHANGELOG.md
View file @
d42ae7e
...
...
@@ -7,6 +7,29 @@ Breaking changes:
*
The previously deprecated
`onPermissionSet` is now removed from the `MobileScanner`
widget.
To handle permission errors, consider catching the result of
`MobileScannerController.start()`
.
*
Toggling the device torch now does nothing if the device has no torch, rather than throwing an error.
*
The
`controller` of the `MobileScanner`
widget is now required.
*
The
`onDetect` method of `MobileScanner` has been renamed to `onBarcodeDetected`
.
*
The
`MobileScanner` widget no longer starts its `controller`
.
Clients of the widget should call
`controller.start()`
when appropriate.
*
The
`onStart`
method has been removed.
To retrieve the start arguments of the controller, await the
`start()`
method:
```
dart
final
arguments
=
await
controller
.
start
();
```
To retrieve the updated preview size when the application resumes from the background,
use the new
`onScannerRestarted`
method.
*
The
`autoResume` attribute has been removed from the `MobileScanner`
widget.
The controller already automatically resumes, so it had no effect.
*
Removed
`MobileScannerCallback` and `MobileScannerArgumentsCallback`
typedef.
Fixed:
*
Fixed a memory leak where the
`MobileScanner`
widget would never close its subscription to the barcode events.
*
Fixed a dependency on all properties of
`MediaQueryData`
to build the preview widget. Now the preview only depends on its layout constraints.
*
Fixed a potential crash when the scanner is restarted due to the app being resumed.
*
Various documentation improvements.
Features:
*
Added a new
`placeholderBuilder` function to the `MobileScanner`
widget to customize the preview placeholder.
## 3.0.0-beta.2
Breaking changes:
...
...
Please
register
or
login
to post a comment