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-04-30 15:16:03 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
47534aec2ebf0d117cf972984748f01769f48668
47534aec
1 parent
c816b397
ignore the already initialized error case
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
lib/src/mobile_scanner_controller.dart
lib/src/mobile_scanner_controller.dart
View file @
47534ae
...
...
@@ -285,6 +285,13 @@ class MobileScannerController extends ValueNotifier<MobileScannerState> {
);
}
}
on
MobileScannerException
catch
(
error
)
{
// If the controller is already initialized, ignore the error.
// Starting the controller while it is already started, or in the process of starting, is redundant.
if
(
error
.
errorCode
==
MobileScannerErrorCode
.
controllerAlreadyInitialized
)
{
return
;
}
// The initialization finished with an error.
// To avoid stale values, reset the output size,
// torch state and zoom scale to the defaults.
...
...
Please
register
or
login
to post a comment