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
Julian Steenbakker
2022-12-08 11:13:48 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b3cb7353e715a665bbec827a51695a2b612f355d
b3cb7353
1 parent
08471523
doc: update changelog
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
CHANGELOG.md
CHANGELOG.md
View file @
b3cb735
## 3.0.0-beta.3
Deprecated:
*
The
`onStart` method has been renamed to `onScannerStarted`
.
*
The
`onPermissionSet` argument of the `MobileScannerController`
is now deprecated.
Breaking changes:
*
`MobileScannerException` now uses an `errorCode` instead of a `message`
.
*
`MobileScannerException`
now contains additional details from the original error.
*
Refactored
`MobileScannerController.start()` to throw `MobileScannerException`
s
with consistent error codes, rather than string messages.
*
The previously deprecated
`onPermissionSet` is now removed from the `MobileScanner`
widget.
*
The
`onPermissionSet` argument of the `MobileScannerController`
is now deprecated.
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
`MobileScanner` now only starts its internal `controller`
.
If providing your own controller, consider calling
`start()`
on it.
*
The
`onStart` method has been renamed to `onScannerStarted`
.
*
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.
Improvements:
*
Toggling the device torch now does nothing if the device has no torch, rather than throwing an error.
Features:
*
Added a new
`placeholderBuilder` function to the `MobileScanner`
widget to customize the preview placeholder.
*
Added
`autoStart`
parameter to MobileScannerController(). If set to false, controller won't start automatically.
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