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
2025-04-17 20:24:39 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
854a15d72eb1befa94160c85f947e44b761b3393
854a15d7
1 parent
9cb6d246
fix: state never initialized when controller is already running
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
7 deletions
lib/src/mobile_scanner_controller.dart
lib/src/mobile_scanner_controller.dart
View file @
854a15d
...
...
@@ -332,13 +332,6 @@ 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