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
Andrei Tarasevich
2023-01-24 11:03:12 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2023-01-24 11:03:12 +0300
Commit
43aa60d37e10831969dd369859f421aa5e21c0d3
43aa60d3
1 parent
97c00bf0
Update switchCamera() documentation.
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 @
43aa60d
...
...
@@ -283,9 +283,9 @@ class MobileScannerController {
await
_methodChannel
.
invokeMethod
(
'torch'
,
torchState
.
value
.
index
);
}
///
Switches the torch on or off
.
///
Changes the state of the camera (front or back)
.
///
///
Only works if torch is available
.
///
Does nothing if the device has no front camera
.
Future
<
void
>
switchCamera
()
async
{
await
_methodChannel
.
invokeMethod
(
'stop'
);
final
CameraFacing
facingToUse
=
...
...
Please
register
or
login
to post a comment