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-11-08 18:28:27 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ff99c61d69056eb596d1fc0a4d8968f17947720e
ff99c61d
1 parent
cd7302f9
fix torch state
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
lib/src/mobile_scanner_controller.dart
lib/src/mobile_scanner_controller.dart
View file @
ff99c61
...
...
@@ -225,6 +225,9 @@ class MobileScannerController extends ValueNotifier<MobileScannerState> {
cameraDirection:
effectiveDirection
,
isInitialized:
true
,
size:
viewAttributes
.
size
,
// If the device has a flashlight, let the platform update the torch state.
// If it does not have one, provide the unavailable state directly.
torchState:
viewAttributes
.
hasTorch
?
null
:
TorchState
.
unavailable
,
);
}
on
MobileScannerException
catch
(
error
)
{
if
(!
_isDisposed
)
{
...
...
Please
register
or
login
to post a comment