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 15:18:14 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8c72717bd9bf52097ea1c7bff5950ef15783ea2e
8c72717b
1 parent
db034576
do nothing in setTorchState if torch is not available
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
lib/src/method_channel/mobile_scanner_method_channel.dart
lib/src/method_channel/mobile_scanner_method_channel.dart
View file @
8c72717
...
...
@@ -192,6 +192,10 @@ class MethodChannelMobileScanner extends MobileScannerPlatform {
@override
Future
<
void
>
setTorchState
(
TorchState
torchState
)
async
{
if
(
torchState
==
TorchState
.
unavailable
)
{
return
;
}
await
methodChannel
.
invokeMethod
<
void
>(
'torch'
,
torchState
.
rawValue
);
}
...
...
Please
register
or
login
to post a comment