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
Julian Steenbakker
2023-08-29 13:13:34 +0200
Browse Files
Options
Browse Files
Download
Plain Diff
Committed by
GitHub
2023-08-29 13:13:34 +0200
Commit
211ca437e5e1adecac5d3092f9d9a037ac3a9bb2
211ca437
2 parents
83ce1ed9
f8f898b3
Merge branch 'master' into dependabot/gradle/example/android/kotlin_version-1.9.10
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
lib/src/mobile_scanner.dart
lib/src/mobile_scanner_controller.dart
lib/src/web/base.dart
lib/src/mobile_scanner.dart
View file @
211ca43
...
...
@@ -272,7 +272,7 @@ class _MobileScannerState extends State<MobileScanner>
alignment:
Alignment
.
center
,
children:
[
_scanner
(
value
.
size
,
value
.
webId
,
value
.
textureId
),
widget
.
overlay
!
widget
.
overlay
!
,
],
);
}
else
{
...
...
lib/src/mobile_scanner_controller.dart
View file @
211ca43
...
...
@@ -384,7 +384,7 @@ class MobileScannerController {
barcodes:
[
Barcode
(
rawValue:
(
data
as
Map
)[
'payload'
]
as
String
?,
)
)
,
],
),
);
...
...
lib/src/web/base.dart
View file @
211ca43
...
...
@@ -80,7 +80,7 @@ mixin InternalStreamCreation on WebBarcodeReaderBase {
'video'
:
VideoOptions
(
facingMode:
cameraFacing
==
CameraFacing
.
front
?
'user'
:
'environment'
,
)
)
,
};
}
else
{
constraints
=
{
'video'
:
true
};
...
...
@@ -147,8 +147,8 @@ mixin InternalTorchDetection on InternalStreamCreation {
final
track
=
localMediaStream
?.
getVideoTracks
();
await
track
?.
first
.
applyConstraints
({
'advanced'
:
[
{
'torch'
:
enabled
}
]
{
'torch'
:
enabled
},
],
});
}
}
...
...
Please
register
or
login
to post a comment