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
2024-06-18 15:18:14 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a57d460d701505db66a14e0e059079da3330b213
a57d460d
1 parent
fd9941c2
fix bug in app lifecycle guidance
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
CHANGELOG.md
README.md
CHANGELOG.md
View file @
a57d460
...
...
@@ -7,6 +7,9 @@ Improvements:
*
[
web
]
Added the size information to barcode results.
*
Added support for barcode formats to image analysis.
*
Updated the scanner to report any scanning errors that were encountered during processing.
*
Introduced a new getter
`hasCameraPermission` for the `MobileScannerState`
.
*
Fixed a bug in the lifecycle handling sample. Now instead of checking
`isInitialized`
,
the sample recommends using
`hasCameraPermission`
, which also guards against camera permission errors.
Bugs fixed:
*
Fixed a bug that would cause the scanner to emit an error when it was already started. Now it ignores any calls to start while it is starting.
...
...
README.md
View file @
a57d460
...
...
@@ -127,7 +127,7 @@ class MyState extends State<MyStatefulWidget> with WidgetsBindingObserver {
void
didChangeAppLifecycleState
(
AppLifecycleState
state
)
{
// If the controller is not ready, do not try to start or stop it.
// Permission dialogs can trigger lifecycle changes before the controller is ready.
if
(!
controller
.
value
.
isInitialized
)
{
if
(!
controller
.
value
.
hasCameraPermission
)
{
return
;
}
...
...
@@ -192,4 +192,4 @@ Future<void> dispose() async {
To display the camera preview, pass the controller to a
`MobileScanner`
widget.
See the
[
examples
](
example/README.md
)
for runnable examples of various usages,
such as the basic usage, applying a scan window, or retrieving images from the barcodes.
such as the basic usage, applying a scan window, or retrieving images from the barcodes.
\ No newline at end of file
...
...
Please
register
or
login
to post a comment