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
2023-12-05 16:30:48 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2ef4ccdff761f8e98a9cce1c573824e2424e4612
2ef4ccdf
1 parent
f05f880f
emit running false before actually stopping the camera
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
lib/src/mobile_scanner_controller.dart
lib/src/mobile_scanner_controller.dart
View file @
2ef4ccd
...
...
@@ -267,14 +267,14 @@ class MobileScannerController extends ValueNotifier<MobileScannerState> {
_throwIfNotInitialized
();
await
MobileScannerPlatform
.
instance
.
stop
();
// After the camera stopped, set the torch state to off,
// as the torch state callback is never called when the camera is stopped.
value
=
value
.
copyWith
(
isRunning:
false
,
torchState:
TorchState
.
off
,
);
await
MobileScannerPlatform
.
instance
.
stop
();
}
/// Switch between the front and back camera.
...
...
Please
register
or
login
to post a comment