This big release contains all improvements from the beta releases.
In addition to that, this release contains:
Improvements:
Fixed an issue in which the scanner would freeze if two scanner widgets where placed in a page view,
and the paged was swiped. An example has been added in the example app.
You need to set startDelay: true if used in a page view.
[Web] Automatically inject js libraries.
[macOS] The minimum build version is now macOS 10.14 in according to the latest Flutter version.
[Android] Fixed an issue in which the scanWindow would remain even after disposing the scanner.
Updated dependencies.
v3.0.0-beta.4
Fixes:
Fixes a permission bug on Android where denying the permission would cause an infinite loop of permission requests.
Updates the example app to handle permission errors with the new builder parameter.
Now it no longer throws uncaught exceptions when the permission is denied.
Updated several dependencies
Features:
Added a new errorBuilder to the MobileScanner widget that can be used to customize the error state of the preview. (Thanks @navaronbracke !)
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 MobileScannerExceptions
with consistent error codes, rather than string messages.
To handle permission errors, consider catching the result of MobileScannerController.start().
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.
[Web] Replaced jsqr library with zxing-js for full barcode support.
Improvements:
Toggling the device torch now does nothing if the device has no torch, rather than throwing an error.
Removed called stop while already stopped messages.
Features:
You can now provide a scanWindow to the MobileScanner() widget.
You can now draw an overlay over the scanned barcode. See the barcode scanner window in the example app for more information.
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.
This big release contains all improvements from the beta releases.
In addition to that, this release contains:
Improvements:
Fixed an issue in which the scanner would freeze if two scanner widgets where placed in a page view,
and the paged was swiped. An example has been added in the example app.
You need to set startDelay: true if used in a page view.
[Web] Automatically inject js libraries.
[macOS] The minimum build version is now macOS 10.14 in according to the latest Flutter version.
[Android] Fixed an issue in which the scanWindow would remain even after disposing the scanner.
Updated dependencies.
3.0.0-beta.4
Fixes:
Fixes a permission bug on Android where denying the permission would cause an infinite loop of permission requests.
Updates the example app to handle permission errors with the new builder parameter.
Now it no longer throws uncaught exceptions when the permission is denied.
Updated several dependencies
Features:
Added a new errorBuilder to the MobileScanner widget that can be used to customize the error state of the preview. (Thanks @navaronbracke !)
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 MobileScannerExceptions
with consistent error codes, rather than string messages.
To handle permission errors, consider catching the result of MobileScannerController.start().
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.
[Web] Replaced jsqr library with zxing-js for full barcode support.
Improvements:
Toggling the device torch now does nothing if the device has no torch, rather than throwing an error.
Removed called stop while already stopped messages.
Features:
You can now provide a scanWindow to the MobileScanner() widget.
You can now draw an overlay over the scanned barcode. See the barcode scanner window in the example app for more information.
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.
Added hasTorch function on MobileScannerController(). After starting the controller, you can check if the device has a torch.
[iOS] Support torchEnabled parameter from MobileScannerController() on iOS
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps mobile_scanner from 2.1.0 to 3.0.0.
Release notes
Sourced from mobile_scanner's releases.
... (truncated)
Changelog
Sourced from mobile_scanner's changelog.
... (truncated)
Commits
ec94f6d
release of v3.0.057459ae
Merge pull request #477 from juliansteenbakker/dependabot/gradle/android/com....3aaa551
Merge pull request #474 from juliansteenbakker/dependabot/gradle/example/andr...1714711
chore(deps): bump com.android.tools.build:gradle in /android1f0bebb
chore(deps): bump com.android.tools.build:gradle in /example/android5cf318c
Merge pull request #471 from p-mazhnik/pavel/web-debug-fix971eb0d
Merge pull request #470 from juliansteenbakker/bug/parameter-not-resetting5e85a5c
fix(web): fix loading js scripts in debug mode in flutter 3.779696d7
imp: remove null check91b6841
imp: update macos versionDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)