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
Daniel Newton
2022-03-30 11:06:28 +1300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c078af9c62ece31fe9d0d2188162dfc4b6221e45
c078af9c
1 parent
fb228186
applied 'flutter format'
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
lib/mobile_scanner_web_plugin.dart
lib/mobile_scanner_web_plugin.dart
View file @
c078af9
...
...
@@ -108,8 +108,7 @@ class MobileScannerWebPlugin {
if
(
capabilities
!=
null
&&
capabilities
[
'facingMode'
])
{
var
constraints
=
VideoOptions
(
facingMode:
(
cameraFacing
==
CameraFacing
.
front
?
'user'
:
'environment'
)
);
(
cameraFacing
==
CameraFacing
.
front
?
'user'
:
'environment'
));
_localStream
=
await
html
.
window
.
navigator
.
getUserMedia
(
video:
constraints
);
...
...
Please
register
or
login
to post a comment